|
cocos2d-x
3.3
|
GLProgramCache Singleton that stores manages GLProgram objects (shaders) More...
#include <CCGLProgramCache.h>
Public Member Functions | |
| GLProgramCache () | |
| ctor More... | |
| ~GLProgramCache () | |
| NA NA More... | |
| void | loadDefaultGLPrograms () |
| loads the default shaders More... | |
| void | loadDefaultShaders () |
| void | reloadDefaultGLPrograms () |
| reload the default shaders More... | |
| void | reloadDefaultShaders () |
| GLProgram * | getGLProgram (const std::string &key) |
| returns a GL program for a given key More... | |
| 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 More... | |
| void | addProgram (GLProgram *program, const std::string &key) |
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 () |
| NA NA More... | |
Static Public Member Functions | |
| static GLProgramCache * | getInstance () |
| returns the shared instance More... | |
| static void | destroyInstance () |
| purges the cache. More... | |
| static GLProgramCache * | sharedShaderCache () |
| static void | purgeSharedShaderCache () |
Additional Inherited Members | |
Protected Member Functions inherited from Ref | |
| Ref () | |
| Constructor. More... | |
Protected Attributes inherited from Ref | |
| unsigned int | _referenceCount |
| count of references More... | |
GLProgramCache Singleton that stores manages GLProgram objects (shaders)
| GLProgramCache | ( | ) |
ctor
| ~GLProgramCache | ( | ) |
NA NA
| void addGLProgram | ( | GLProgram * | program, |
| const std::string & | key | ||
| ) |
adds a GLProgram to the cache for a given name
|
inline |
|
static |
purges the cache.
It releases the retained instance.
|
static |
returns the shared instance
|
inline |
| void loadDefaultGLPrograms | ( | ) |
loads the default shaders
|
inline |
|
inline |
|
static |
| void reloadDefaultGLPrograms | ( | ) |
reload the default shaders
|
inline |
|
static |