GFXGLTextureManager Class Reference#include <gfxGLTextureManager.h>
Inheritance diagram for GFXGLTextureManager:
[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
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.
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] |
Creates internal GL texture.
Friends And Related Function Documentation
|