My Project
Public Member Functions | Static Public Member Functions | List of all members
ParaEngine::GLProgramCache Class Reference

GLProgramCache Singleton that stores manages GLProgram objects (shaders) More...

#include <GLProgramCache.h>

Inheritance diagram for ParaEngine::GLProgramCache:
ParaEngine::CRefCountedOne ParaEngine::CRefCounted

Public Member Functions

 GLProgramCache ()
 ctor
 
 ~GLProgramCache ()
 NA NA
 
void loadDefaultGLPrograms ()
 loads the default shaders
 
void loadDefaultShaders ()
 
void reloadDefaultGLPrograms ()
 reload the default shaders
 
void reloadDefaultShaders ()
 
GLProgramgetGLProgram (const std::string &key)
 returns a GL program for a given key
 
GLProgramgetProgram (const std::string &key)
 
GLProgramprogramForKey (const std::string &key)
 
void addGLProgram (GLProgram *program, const std::string &key)
 adds a GLProgram to the cache for a given name
 
void addProgram (GLProgram *program, const std::string &key)
 
- Public Member Functions inherited from ParaEngine::CRefCounted
void addref () const
 add reference count of the object. More...
 
bool delref () const
 decrease reference count of the object. More...
 
int GetRefCount () const
 get the reference count
 
virtual int Release ()
 
CRefCountedAddToAutoReleasePool ()
 addref and releases the ownership sometime soon automatically (usually at the end of the current frame). More...
 

Static Public Member Functions

static GLProgramCachegetInstance ()
 returns the shared instance
 
static void destroyInstance ()
 purges the cache. More...
 
static GLProgramCachesharedShaderCache ()
 
static void purgeSharedShaderCache ()
 

Additional Inherited Members

- Protected Attributes inherited from ParaEngine::CRefCounted
int m_refcount
 

Detailed Description

GLProgramCache Singleton that stores manages GLProgram objects (shaders)

Since
v2.0

The documentation for this class was generated from the following files: