|
cocos2d-x
2.2.3-gd2.113-rev1ec524e
|
CCShaderCache Singleton that stores manages GL shaders. More...
#include <CCShaderCache.h>
Public Member Functions | |
| CCShaderCache () | |
| ctor More... | |
| virtual | ~CCShaderCache () |
| NA NA. More... | |
| void | loadDefaultShaders () |
| loads the default shaders More... | |
| void | reloadDefaultShaders () |
| reload the default shaders More... | |
| CCGLProgram * | programForKey (const char *key) |
| returns a GL program for a given key getProgram More... | |
| void | addProgram (CCGLProgram *program, const char *key) |
| adds a CCGLProgram to the cache for a given name More... | |
Public Member Functions inherited from CCObject | |
| CCObject (void) | |
| virtual | ~CCObject (void) |
| NA. More... | |
| void | release (void) |
| void | retain (void) |
| CCObject * | autorelease (void) |
| CCObject * | copy (void) |
| bool | isSingleReference (void) const |
| unsigned int | retainCount (void) const |
| virtual bool | isEqual (const CCObject *pObject) |
| virtual void | acceptVisitor (CCDataVisitor &visitor) |
| virtual void | update (float dt) |
| CCObject (const CCObject &) | |
| CCObject & | operator= (const CCObject &) |
| virtual void | encodeWithCoder (DS_Dictionary *) |
| virtual bool | canEncode () |
| CCObjectType | getObjType () const |
| virtual int | getTag () const |
| virtual void | setTag (int nTag) |
| void | setObjType (CCObjectType) |
Public Member Functions inherited from CCCopying | |
| virtual CCObject * | copyWithZone (CCZone *pZone) |
Static Public Member Functions | |
| static CCShaderCache * | sharedShaderCache () |
| returns the shared instance getInstance More... | |
| static void | purgeSharedShaderCache () |
| purges the cache. More... | |
Static Public Member Functions inherited from CCObject | |
| static CCObject * | createWithCoder (DS_Dictionary *) |
Additional Inherited Members | |
Public Attributes inherited from CCObject | |
| unsigned int | m_uID |
| int | m_nLuaID |
Protected Attributes inherited from CCObject | |
| unsigned int | m_uReference |
| unsigned int | m_uAutoReleaseCount |
| int | m_nTag |
| int | m_eObjType |
| unsigned int | m_uObjectIdxInArray |
CCShaderCache Singleton that stores manages GL shaders.
| CCShaderCache | ( | ) |
ctor
|
virtual |
NA NA.
| void addProgram | ( | CCGLProgram * | program, |
| const char * | key | ||
| ) |
adds a CCGLProgram to the cache for a given name
| void loadDefaultShaders | ( | ) |
loads the default shaders
| CCGLProgram * programForKey | ( | const char * | key | ) |
returns a GL program for a given key getProgram
|
static |
purges the cache.
It releases the retained instance.
| void reloadDefaultShaders | ( | ) |
reload the default shaders
|
static |
returns the shared instance getInstance