csTextureManager Class Reference
General version of the texture manager. More...
#include <csplugincommon/render3d/txtmgr.h>
Inheritance diagram for csTextureManager:

Public Member Functions | |
csTextureManager (iObjectRegistry *object_reg, iGraphics2D *iG2D) | |
Initialize the texture manager. | |
virtual | ~csTextureManager () |
Destroy the texture manager. | |
void | UnregisterMaterial (csMaterialHandle *handle) |
Called from csMaterialHandle destructor to notify parent texture manager that a material is going to be destroyed. | |
virtual void | Clear () |
Clear (free) all textures. | |
virtual int | GetTextureFormat () |
Query the basic format of textures that can be registered with this texture manager. | |
virtual csPtr< iMaterialHandle > | RegisterMaterial (iMaterial *material) |
Register a material. | |
virtual csPtr< iMaterialHandle > | RegisterMaterial (iTextureHandle *txthandle) |
Register a material based on a texture handle. | |
virtual void | FreeMaterials () |
Default stub implementation until the material system is actually working. | |
Public Attributes | |
csPixelFormat | pfmt |
Pixel format. | |
Protected Member Functions | |
virtual void | read_config (iConfigFile *config) |
Read configuration values from config file. | |
Protected Attributes | |
csTexVector | textures |
List of textures. | |
csMatVector | materials |
List of materials. |
Detailed Description
General version of the texture manager.Each 3D driver should derive a texture manager class from this one and implement the missing functionality.
Definition at line 314 of file txtmgr.h.
Constructor & Destructor Documentation
|
Initialize the texture manager.
|
|
Destroy the texture manager.
|
Member Function Documentation
|
Clear (free) all textures.
|
|
Default stub implementation until the material system is actually working.
Implements iTextureManager. |
|
Query the basic format of textures that can be registered with this texture manager. It is very likely that the texture manager will reject the texture if it is in an improper format. The alpha channel is optional; the texture can have it and can not have it. Only the bits that fit the CS_IMGFMT_MASK mask matters. Implements iTextureManager. |
|
Read configuration values from config file.
|
|
Register a material based on a texture handle. This is a short-cut to quickly make materials based on a single texture. Implements iTextureManager. |
|
Register a material. The input material wrapper is IncRef'd and DecRef'ed later when FreeMaterials () is called or the material handle is destroyed by calling DecRef on it enough times. If you want to keep the input material make sure you have called IncRef yourselves. Implements iTextureManager. |
|
Called from csMaterialHandle destructor to notify parent texture manager that a material is going to be destroyed.
|
Member Data Documentation
|
List of materials.
|
|
Pixel format.
|
|
List of textures.
|
The documentation for this class was generated from the following file:
- csplugincommon/render3d/txtmgr.h
Generated for Crystal Space by doxygen 1.3.9.1