![]() |
Public API Reference |
#include <cswstex.h>
Public Methods | |
csWSTexture (const char *iName, iImage *Image, int iFlags) | |
Create the 2D texture. More... | |
~csWSTexture () | |
Destroy the texture object. More... | |
void | SetKeyColor (int iR, int iG, int iB) |
Set texture transparent color. More... | |
void | SetKeyColor (bool iEnable) |
Set whenever texture has transparent holes or not. More... | |
void | GetKeyColor (int &oR, int &oG, int &oB) |
Get texture transparent color. More... | |
bool | HasKeyColor () |
Query whenever texture has transparent areas. More... | |
void | Register (iTextureManager *iTexMan) |
Register the texture with texture manager. More... | |
void | Unregister () |
Unregister the texture. More... | |
void | Refresh () |
Refresh the texture in video memory (do iTexMan->PrepareTexture ()). More... | |
void | SetName (const char *iName) |
Define texture name. More... | |
const char * | GetName () |
Get texture name. More... | |
iTextureHandle * | GetHandle () |
CSWS uses its own reference counting system. More... | |
void | IncRef () |
Increment reference count to this texture. More... | |
void | DecRef () |
Delete a reference to this texture. More... | |
int | GetRefCount () const |
Return reference count. More... | |
const char * | GetFileName () const |
Get texture file name. More... | |
void | SetFileName (const char *iFileName) |
Set texture file name. More... | |
void | FixKeyColor () |
Find nearest transparent color in image. More... | |
void | DontFixKeyColor () |
Tell texture that transparent color has already been fixed. More... | |
int | GetWidth () |
Query texture width. More... | |
int | GetHeight () |
Query texture height. More... |
The application keeps an array of such objects, and they are registered with the 3D and 2D drivers as soon as app->RegisterTextures() is called.
Definition at line 38 of file cswstex.h.
|
Create the 2D texture.
|
|
Destroy the texture object.
|
|
Delete a reference to this texture.
|
|
Tell texture that transparent color has already been fixed.
|
|
Find nearest transparent color in image.
|
|
Get texture file name.
|
|
CSWS uses its own reference counting system.
Definition at line 86 of file cswstex.h. Referenced by csApp::GetTexture. |
|
Query texture height.
|
|
Get texture transparent color.
|
|
Get texture name.
|
|
Return reference count.
|
|
Query texture width.
|
|
Query whenever texture has transparent areas.
|
|
Increment reference count to this texture.
|
|
Refresh the texture in video memory (do iTexMan->PrepareTexture ()).
|
|
Register the texture with texture manager.
|
|
Set texture file name.
|
|
Set whenever texture has transparent holes or not.
|
|
Set texture transparent color.
|
|
Define texture name.
|
|
Unregister the texture.
|