#include <texture.h>
Inheritance diagram for csTextureWrapper:
Public Methods | |
csTextureWrapper (iImage *Image) | |
Construct a texture handle given a image file. | |
csTextureWrapper (iTextureHandle *ith) | |
Construct a csTextureWrapper from a pre-registered texture. | |
void | SetImageFile (iImage *Image) |
Change the base iImage. More... | |
iImage* | GetImageFile () |
Get the iImage. | |
void | SetTextureHandle (iTextureHandle *tex) |
Change the texture handle. More... | |
iTextureHandle* | GetTextureHandle () |
Get the texture handle. | |
void | SetKeyColor (int red, int green, int blue) |
Set the transparent color. | |
void | GetKeyColor (int &red, int &green, int &blue) |
Query the transparent color. | |
void | SetFlags (int flags) |
Set the flags which are used to register the texture. | |
int | GetFlags () |
Return the flags which are used to register the texture. | |
void | Register (iTextureManager *txtmng) |
Register the texture with the texture manager. | |
void | SetUseCallback (iTextureCallback *callback) |
Set a callback which is called just before the texture is used. More... | |
iTextureCallback* | GetUseCallback () |
Get the use callback. More... | |
void | Visit () |
Visit this texture. More... | |
SCF_DECLARE_IBASE_EXT (csObject) | |
Public Attributes | |
csTextureWrapper::TextureWrapper | scfiTextureWrapper |
Friends | |
class | TextureWrapper |
|
Get the use callback. If there are multiple use callbacks you can use this function to chain. |
|
Change the base iImage. The changes will not be visible until the texture is registered again. |
|
Change the texture handle. The changes will immediatly be visible. This will also change the key color and registration flags to those of the new texture and the iImage to NULL. |
|
Set a callback which is called just before the texture is used. This is mainly useful for procedural textures which can then choose to update their image. |
|
Visit this texture. This should be called by the engine right before using the texture. It is responsible for calling the use callback if there is one. |