|
GL Studio SCECpp Runtime Library
|
#include <gls_texture_palette.h>
Classes | |
| struct | InitParameters |
Public Member Functions | |
| GlsTexturePalette (const InitParameters &initParameters) | |
| virtual | ~GlsTexturePalette () |
| void | BindTexture (GlsStateManager &gl, const GlsUInt32 index) const |
Static Public Attributes | |
| static const GlsUInt32 | NO_TEXTURE = GLSUINT32_MAX |
Protected Attributes | |
| GlsPointerArray | _imagePointers |
Stores a list of textures, each with its own texture handle. This allows the textures to be stored separately from the objects, which allows multiple objects to share the same textures.
| GlsTexturePalette::GlsTexturePalette | ( | const InitParameters & | initParameters | ) |
Create a new texture palette with the indicated number of entries
| initParameters | initialization parameters for texture palette |
|
virtual |
Destructor - shall never be called
| void GlsTexturePalette::BindTexture | ( | GlsStateManager & | gl, |
| const GlsUInt32 | index | ||
| ) | const |
Bind the texture at the given index, unless it is already bound. Set as the texture to be used for texturing polygons
| gl | OpenGL State Manager to bind texture in |
| index | index < GetSize(), index != NO_TEXTURE, entry at index is not GLS_NULL |
|
protected |
array of image pointers
|
static |
texture index used to indicate that an object does not have a texture
1.8.10