#include <opengltexture.h>

Public Member Functions | |
| OpenGLTexture (const char *id) | |
| virtual | ~OpenGLTexture () |
| virtual ulong_t | GetDataSize () |
| virtual void | Apply () |
| virtual void | ReplaceData (byte_t *data) |
Protected Member Functions | |
| virtual bool | LoadResource () |
| virtual void | UnloadResource () |
Protected Attributes | |
| Ref< OpenGLGfxServer > | gl_gfx_server |
| GLuint | glid |
| GLenum | format |
| ulong_t | data_size |
| OpenGLTexture::OpenGLTexture | ( | const char * | id | ) |
| OpenGLTexture::~OpenGLTexture | ( | ) | [virtual] |
| ulong_t OpenGLTexture::GetDataSize | ( | ) | [virtual] |
Return an estimated byte size of the resource data. This is only used for statistics.
Reimplemented from Resource.
| void OpenGLTexture::Apply | ( | ) | [virtual] |
Activates texture for drawing.
Reimplemented from Texture.
| void OpenGLTexture::ReplaceData | ( | byte_t * | data | ) | [virtual] |
Replaces image data.
Reimplemented from Texture.
| bool OpenGLTexture::LoadResource | ( | ) | [protected, virtual] |
Load the texture resource.
Reimplemented from Resource.
| void OpenGLTexture::UnloadResource | ( | ) | [protected, virtual] |
Unload everything.
Reimplemented from Resource.
Ref<OpenGLGfxServer> OpenGLTexture::gl_gfx_server [protected] |
GLuint OpenGLTexture::glid [protected] |
GLenum OpenGLTexture::format [protected] |
ulong_t OpenGLTexture::data_size [protected] |
1.5.3