GFXGLTextureManager Class Reference

#include <gfxGLTextureManager.h>

Inheritance diagram for GFXGLTextureManager:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 GFXGLTextureManager ()

Protected Member Functions

GFXTextureObject_createTexture (U32 height, U32 width, U32 depth, GFXFormat format, GFXTextureProfile *profile, U32 numMipLevels, bool forceMips=false, S32 antialiasLevel=0)
 Texture will contain garbage.
bool _loadTexture (GFXTextureObject *texture, DDSFile *dds)
 Load a texture from a proper DDSFile instance.
bool _loadTexture (GFXTextureObject *texture, GBitmap *bmp)
 Load data into a texture from a GBitmap using the internal API.
bool _loadTexture (GFXTextureObject *texture, void *raw)
 Load data into a texture from a raw buffer using the internal API.
bool _refreshTexture (GFXTextureObject *texture)
 Refresh a texture using the internal API.
bool _freeTexture (GFXTextureObject *texture, bool zombify=false)
 Free a texture (but do not delete the GFXTextureObject) using the internal API.
U32 _getTotalVideoMemory ()
 Returns available VRAM in bytes.

Private Member Functions

void innerCreateTexture (GFXGLTextureObject *obj, U32 height, U32 width, U32 depth, GFXFormat format, GFXTextureProfile *profile, U32 numMipLevels, bool forceMips=false)
 Creates internal GL texture.

Friends

class GFXGLTextureObject

Constructor & Destructor Documentation

GFXGLTextureManager::GFXGLTextureManager (  ) 


Member Function Documentation

GFXTextureObject* GFXGLTextureManager::_createTexture ( U32  height,
U32  width,
U32  depth,
GFXFormat  format,
GFXTextureProfile profile,
U32  numMipLevels,
bool  forceMips = false,
S32  antialiasLevel = 0 
) [protected, virtual]

Texture will contain garbage.

Implements GFXTextureManager.

bool GFXGLTextureManager::_loadTexture ( GFXTextureObject texture,
DDSFile dds 
) [protected, virtual]

Load a texture from a proper DDSFile instance.

Implements GFXTextureManager.

bool GFXGLTextureManager::_loadTexture ( GFXTextureObject texture,
GBitmap bmp 
) [protected, virtual]

Load data into a texture from a GBitmap using the internal API.

Implements GFXTextureManager.

bool GFXGLTextureManager::_loadTexture ( GFXTextureObject texture,
void raw 
) [protected, virtual]

Load data into a texture from a raw buffer using the internal API.

Note that the size of the buffer is assumed from the parameters used for this GFXTextureObject's _createTexture call.

Implements GFXTextureManager.

bool GFXGLTextureManager::_refreshTexture ( GFXTextureObject texture  )  [protected, virtual]

Refresh a texture using the internal API.

Implements GFXTextureManager.

bool GFXGLTextureManager::_freeTexture ( GFXTextureObject texture,
bool  zombify = false 
) [protected, virtual]

Free a texture (but do not delete the GFXTextureObject) using the internal API.

This is only called during zombification for textures which need it, so you don't need to do any internal safety checks.

Implements GFXTextureManager.

U32 GFXGLTextureManager::_getTotalVideoMemory (  )  [protected, virtual]

Returns available VRAM in bytes.

Implements GFXTextureManager.

void GFXGLTextureManager::innerCreateTexture ( GFXGLTextureObject obj,
U32  height,
U32  width,
U32  depth,
GFXFormat  format,
GFXTextureProfile profile,
U32  numMipLevels,
bool  forceMips = false 
) [private]

Creates internal GL texture.


Friends And Related Function Documentation

friend class GFXGLTextureObject [friend]