OpenGLTexture Class Reference
[OpenGL Module]

#include <opengltexture.h>

Inheritance diagram for OpenGLTexture:

Texture Resource Root Object TreeNode< Root > Referenced Counted Serialized List< Root > ListNode< Root >

List of all members.

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< OpenGLGfxServergl_gfx_server
GLuint glid
GLenum format
ulong_t data_size

Constructor & Destructor Documentation

OpenGLTexture::OpenGLTexture ( const char *  id  ) 

OpenGLTexture::~OpenGLTexture (  )  [virtual]

Member Function Documentation

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.

Member Data Documentation

Ref<OpenGLGfxServer> OpenGLTexture::gl_gfx_server [protected]

GLuint OpenGLTexture::glid [protected]

GLenum OpenGLTexture::format [protected]

ulong_t OpenGLTexture::data_size [protected]

The documentation for this class was generated from the following files:
Generated on Sat Oct 20 14:47:33 2007 for Dark Oberon by  doxygen 1.5.3