#include <tgTexture.h>
Public Member Functions | |
void | Bind (int stage=0) const |
void | CopyTexImage2D (int width, int height) |
void | CopyTexImage2D (int x, int y, int width, int height) |
int | GetHeight () const |
bool | GetImageData (unsigned char *image_data) |
GLuint | GetTextureID () |
int | GetWidth () const |
bool | Load (void *image_data, int width, int height, GLenum format=GL_RGB, GLenum internal=GL_UNSIGNED_BYTE) |
bool | Load (const char *filename) |
bool | Save (const char *filename, bool overwrite=true) |
tgTexture () | |
~tgTexture () | |
Private Attributes | |
int | m_height |
GLuint | m_texture_id |
int | m_width |
Class tgTexture.
Definition at line 19 of file tgTexture.h.
Definition at line 9 of file tgTexture.cpp.
Definition at line 21 of file tgTexture.cpp.
void tgTexture::Bind | ( | int | stage = 0 | ) | const |
Definition at line 58 of file tgTexture.cpp.
void tgTexture::CopyTexImage2D | ( | int | width, |
int | height | ||
) |
Definition at line 64 of file tgTexture.cpp.
void tgTexture::CopyTexImage2D | ( | int | x, |
int | y, | ||
int | width, | ||
int | height | ||
) |
Definition at line 71 of file tgTexture.cpp.
int TomGine::tgTexture::GetHeight | ( | ) | const [inline] |
Definition at line 42 of file tgTexture.h.
bool tgTexture::GetImageData | ( | unsigned char * | image_data | ) |
Definition at line 52 of file tgTexture.cpp.
GLuint TomGine::tgTexture::GetTextureID | ( | ) | [inline] |
Definition at line 40 of file tgTexture.h.
int TomGine::tgTexture::GetWidth | ( | ) | const [inline] |
Definition at line 41 of file tgTexture.h.
bool tgTexture::Load | ( | void * | image_data, |
int | width, | ||
int | height, | ||
GLenum | format = GL_RGB , |
||
GLenum | internal = GL_UNSIGNED_BYTE |
||
) |
Definition at line 26 of file tgTexture.cpp.
bool tgTexture::Load | ( | const char * | filename | ) |
Definition at line 34 of file tgTexture.cpp.
bool tgTexture::Save | ( | const char * | filename, |
bool | overwrite = true |
||
) |
Definition at line 43 of file tgTexture.cpp.
int TomGine::tgTexture::m_height [private] |
Definition at line 24 of file tgTexture.h.
GLuint TomGine::tgTexture::m_texture_id [private] |
Definition at line 22 of file tgTexture.h.
int TomGine::tgTexture::m_width [private] |
Definition at line 23 of file tgTexture.h.