GLProgramCache Singleton that stores manages GLProgram objects (shaders) More...
Inherits Ref.
Public Member Functions | |
| GLProgramCache () | |
| Constructor. | |
| ~GLProgramCache () | |
| Destructor. | |
| void | loadDefaultGLPrograms () |
| loads the default shaders | |
| void | reloadDefaultGLPrograms () |
| reload the default shaders | |
| GLProgram * | getGLProgram (const std::string &key) |
| returns a GL program for a given key | |
| void | addGLProgram (GLProgram *program, const std::string &key) |
| adds a GLProgram to the cache for a given name | |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| void | release () |
| Releases the ownership immediately. More... | |
| Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More... | |
| unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
| Destructor. More... | |
Static Public Member Functions | |
| static GLProgramCache * | getInstance () |
| returns the shared instance | |
| static void | destroyInstance () |
| purges the cache. More... | |
| static GLProgramCache * | sharedShaderCache () |
| local | sharedShaderCache () |
| static void | purgeSharedShaderCache () |
Additional Inherited Members | |
Public Attributes inherited from Ref | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID | |
| int | _luaID |
| Lua reference id. | |
| void * | _scriptObject |
| scriptObject, support for swift | |
GLProgramCache Singleton that stores manages GLProgram objects (shaders)
|
static |
purges the cache.
It releases the retained instance.
|
static |
purges the cache.
It releases the retained instance.
|
static |
purges the cache.
It releases the retained instance.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |