Class hierarchy Compound list File list Compound Members File Members
TextureCache Class Reference
This is a cache of textures, holding textures by name to be retrieved at any time. More...
Inherits Interface.
List of all members.
Public Members
- virtual void* load (const char* Name) = 0
- retrieve a texture (returns a handle to be used in rendering) It will load the image from a resource (file).
- virtual void* createFromBitmap (const char* Name, Bitmap* Texture) = 0
- Creates a new texture from a bitmap, adding it to the cache.
Related Functions
(Note that these are not member functions.)
- DLLExport void initTextureCache (ResourceStream* RS=NULL, int Destroy=0)
- Initializes an internal texture cache.
- DLLExport TextureCache* newTextureCache (ResourceStream* RS=NULL, int Destroy=0)
- Creates a user TextureCache.
Detailed Description
This is a cache of textures, holding textures by name to be retrieved at any time.
Member Function Documentation
virtual void* TextureCache::load(const char* Name) = 0 [pure virtual]
retrieve a texture (returns a handle to be used in rendering) It will load the image from a resource (file).
virtual void* TextureCache::createFromBitmap(const char* Name, Bitmap* Texture) = 0 [pure virtual]
Creates a new texture from a bitmap, adding it to the cache.
Don't use this one if you're loading the bitmap from a resource (file).
DLLExport void initTextureCache(ResourceStream* RS=NULL, int Destroy=0)
Initializes an internal texture cache.
If RS is NULL, actual files will be used to load textures.
Setting Destroy to non zero will release the resource stream
when the texture cache is released.
DLLExport TextureCache* newTextureCache(ResourceStream* RS=NULL, int Destroy=0)
Creates a user TextureCache.
It must be release()d when it is no longer needed.
Setting Destroy to non zero will release the resource stream
when the texture cache is released.
The documentation for this class was generated from the following files: