![]() |
Public API Reference |
#include <texture.h>
Inheritance diagram for csTextureWrapper:
Public Methods | |
csTextureWrapper (iImage *Image) | |
Construct a texture handle given a image file. More... | |
csTextureWrapper (iTextureHandle *ith) | |
Construct a csTextureWrapper from a pre-registered texture. More... | |
csTextureWrapper (csTextureWrapper &) | |
Copy constructor. More... | |
void | SetImageFile (iImage *Image) |
Change the base iImage. More... | |
iImage * | GetImageFile () |
Get the iImage. More... | |
void | SetTextureHandle (iTextureHandle *tex) |
Change the texture handle. More... | |
iTextureHandle * | GetTextureHandle () |
Get the texture handle. More... | |
void | SetKeyColor (int red, int green, int blue) |
Set the transparent color. More... | |
void | GetKeyColor (int &red, int &green, int &blue) |
Query the transparent color. More... | |
void | SetFlags (int flags) |
Set the flags which are used to register the texture. More... | |
int | GetFlags () |
Return the flags which are used to register the texture. More... | |
void | Register (iTextureManager *txtmng) |
Register the texture with the texture manager. More... | |
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... |
Definition at line 42 of file csengine/texture.h.
|
Construct a texture handle given a image file.
|
|
Construct a csTextureWrapper from a pre-registered texture.
|
|
Copy constructor.
|
|
Return the flags which are used to register the texture.
Definition at line 125 of file csengine/texture.h. |
|
Get the iImage.
Definition at line 105 of file csengine/texture.h. |
|
Query the transparent color.
Definition at line 119 of file csengine/texture.h. |
|
Get the texture handle.
Definition at line 114 of file csengine/texture.h. |
|
Get the use callback. If there are multiple use callbacks you can use this function to chain. Definition at line 144 of file csengine/texture.h. |
|
Register the texture with the texture manager.
|
|
Set the flags which are used to register the texture.
Definition at line 123 of file csengine/texture.h. |
|
Change the base iImage. The changes will not be visible until the texture is registered again. |
|
Set the transparent color.
|
|
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 0. |
|
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. Definition at line 135 of file csengine/texture.h. References SCF_SET_REF. |
|
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. Definition at line 154 of file csengine/texture.h. References iTextureCallback::UseTexture. |