class GmFileCache

Class Description

Public Methods

[more]GLuint fetchTexture (char* filename)
Returns id of specified texture
[more]void flushTexture (char* filename)
Removes specified texture from cache
[more]void flushTexture (GLuint id)
Removes specified texture from cache
[more]void flushTextures ()
Removes all textures from cache
[more]static GmFileCache& getInstance ()
Returns pointer to this singelton object

Protected Fields

[more]map<string, GLuint> mTextures
Map linking filenames to textures ids

Protected Methods

[more] GmFileCache ()
Protected constructor
[more]virtual ~GmFileCache ()
Virtual destructor


Documentation

Class Description
omap<string, GLuint> mTextures
Map linking filenames to textures ids

o GmFileCache()
Protected constructor

ovirtual ~GmFileCache()
Virtual destructor

ostatic GmFileCache& getInstance()
Returns pointer to this singelton object

oGLuint fetchTexture(char* filename)
Returns id of specified texture

Parameters:
- filename name of the file where texture information is stored

ovoid flushTexture(GLuint id)
Removes specified texture from cache

Parameters:
id - Id of the texture to be flushed

ovoid flushTexture(char* filename)
Removes specified texture from cache

Parameters:
- filename name of the texture to be flushed

ovoid flushTextures()
Removes all textures from cache


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.