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

Related Functions

(Note that these are not member functions.)

Detailed Description

This is a cache of textures, holding textures by name to be retrieved at any time.


Member Function Documentation

virtual Texture* 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).

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: