csWSTexture Class Reference
[Crystal Space Windowing System]
Texture representation within the windowing system.
More...
#include <cswstex.h>
Public Methods | |
csWSTexture (const char *iName, iImage *Image, int iFlags) | |
Create the 2D texture. | |
~csWSTexture () | |
Destroy the texture object. | |
void | SetKeyColor (int iR, int iG, int iB) |
Set texture transparent color. | |
void | SetKeyColor (bool iEnable) |
Set whenever texture has transparent holes or not. | |
void | GetKeyColor (int &oR, int &oG, int &oB) |
Get texture transparent color. | |
bool | HasKeyColor () |
Query whenever texture has transparent areas. | |
void | Register (iTextureManager *iTexMan) |
Register the texture with texture manager. | |
void | Unregister () |
Unregister the texture. | |
void | Refresh () |
Refresh the texture in video memory (do iTexMan->PrepareTexture ()). | |
void | SetName (const char *iName) |
Define texture name. | |
const char * | GetName () const |
Get texture name. | |
iTextureHandle * | GetHandle () |
CSWS uses its own reference counting system. | |
void | IncRef () |
Increment reference count to this texture. | |
void | DecRef () |
Delete a reference to this texture. | |
int | GetRefCount () const |
Return reference count. | |
const char * | GetFileName () const |
Get texture file name. | |
void | SetFileName (const char *iFileName) |
Set texture file name. | |
void | FixKeyColor () |
Find nearest transparent color in image. | |
void | DontFixKeyColor () |
Tell texture that transparent color has already been fixed. | |
int | GetWidth () |
Query texture width. | |
int | GetHeight () |
Query texture height. |
Detailed Description
Texture representation within the windowing system.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.
Constructor & Destructor Documentation
|
Create the 2D texture.
|
|
Destroy the texture object.
|
Member Function Documentation
|
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.
|
The documentation for this class was generated from the following file:
- csws/cswstex.h
Generated for Crystal Space by doxygen 1.2.18