My Project
|
GLProgramCache Singleton that stores manages GLProgram objects (shaders) More...
#include <GLProgramCache.h>
Public Member Functions | |
GLProgramCache () | |
ctor | |
~GLProgramCache () | |
NA NA | |
void | loadDefaultGLPrograms () |
loads the default shaders | |
void | loadDefaultShaders () |
void | reloadDefaultGLPrograms () |
reload the default shaders | |
void | reloadDefaultShaders () |
GLProgram * | getGLProgram (const std::string &key) |
returns a GL program for a given key | |
GLProgram * | getProgram (const std::string &key) |
GLProgram * | programForKey (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) |
![]() | |
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 () |
CRefCounted * | AddToAutoReleasePool () |
addref and releases the ownership sometime soon automatically (usually at the end of the current frame). More... | |
Static Public Member Functions | |
static GLProgramCache * | getInstance () |
returns the shared instance | |
static void | destroyInstance () |
purges the cache. More... | |
static GLProgramCache * | sharedShaderCache () |
static void | purgeSharedShaderCache () |
Additional Inherited Members | |
![]() | |
int | m_refcount |
GLProgramCache Singleton that stores manages GLProgram objects (shaders)