#include <T2GLTexture_GL.h>
Definition at line 186 of file T2GLTexture_GL.h.
◆ T2GLTexture()
T2GLTexture::T2GLTexture |
( |
| ) |
|
|
default |
◆ ~T2GLTexture()
T2GLTexture::~T2GLTexture |
( |
| ) |
|
◆ Create()
void T2GLTexture::Create |
( |
TEXTURE_FORMAT | a_eFormat, |
|
|
UINT | a_uiWidth, |
|
|
UINT | a_uiHeight, |
|
|
const void * | a_pData ) |
Definition at line 19 of file T2GLTexture_GL.cpp.
20{
21 if ( m_pHandle != 0 )
23
24 m_pchTexName = "runtime";
25
26 GLenum glFormat =
29 GL_R;
30
31 m_pHandle = T2Render::CreateTexture( a_uiWidth, a_uiHeight, glFormat, glFormat, GL_UNSIGNED_BYTE,
TFALSE, a_pData );
32 m_uiWidth = a_uiWidth;
33 m_uiHeight = a_uiHeight;
34 m_uiMipMapCount = 1;
35 m_eFormat = a_eFormat;
36
38}
@ TEXTURE_FORMAT_R8G8B8A8_UNORM
@ TEXTURE_FORMAT_R8G8_UNORM
void AddTexture(T2GLTexture *a_pTexture)
static TFORCEINLINE T2TextureManager * GetSingleton()
◆ Destroy()
void T2GLTexture::Destroy |
( |
| ) |
|
Definition at line 13 of file T2GLTexture_GL.cpp.
14{
16 T2Render::DestroyTexture( m_pHandle );
17}
void RemoveTexture(T2GLTexture *a_pTexture)
◆ GetHandle()
GLuint T2GLTexture::GetHandle |
( |
| ) |
const |
|
inline |
◆ GetHeight()
UINT T2GLTexture::GetHeight |
( |
| ) |
const |
|
inline |
◆ GetName()
const TCHAR * T2GLTexture::GetName |
( |
| ) |
const |
|
inline |
◆ GetWidth()
UINT T2GLTexture::GetWidth |
( |
| ) |
const |
|
inline |
◆ SetName()
void T2GLTexture::SetName |
( |
const TCHAR * | a_pchName | ) |
|
|
inline |
◆ SetWrap()
Definition at line 40 of file T2GLTexture_GL.cpp.
41{
42 m_eAddressU = eAddressU;
43 m_eAddressV = eAddressV;
44}
◆ T2TextureManager
The documentation for this class was generated from the following files: