CCShaderCache Singleton that stores manages GL shaders. More...
#include <CCShaderCache.h>
Public Member Functions | |
CCShaderCache () | |
virtual | ~CCShaderCache () |
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 More... | |
void | addProgram (CCGLProgram *program, const char *key) |
adds a CCGLProgram to the cache for a given name More... | |
![]() | |
CCObject (void) | |
virtual | ~CCObject (void) |
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) |
![]() | |
virtual CCObject * | copyWithZone (CCZone *pZone) |
Static Public Member Functions | |
static CCShaderCache * | sharedShaderCache () |
returns the shared instance More... | |
static void | purgeSharedShaderCache () |
purges the cache. More... | |
var | purgeSharedShaderCache () |
purges the cache. More... | |
local | purgeSharedShaderCache () |
purges the cache. More... | |
Additional Inherited Members | |
![]() | |
unsigned int | m_uID |
int | m_nLuaID |
![]() | |
unsigned int | m_uReference |
unsigned int | m_uAutoReleaseCount |
CCShaderCache Singleton that stores manages GL shaders.
CCShaderCache | ( | ) |
var ctor | ( | ) |
local CCShaderCache | ( | ) |
|
virtual |
void addProgram | ( | CCGLProgram * | program, |
const char * | key | ||
) |
adds a CCGLProgram to the cache for a given name
var addProgram | ( | var | program, |
var | key | ||
) |
adds a CCGLProgram to the cache for a given name
local addProgram | ( | local | program, |
local | key | ||
) |
adds a CCGLProgram to the cache for a given name
void loadDefaultShaders | ( | ) |
loads the default shaders
var loadDefaultShaders | ( | ) |
loads the default shaders
local loadDefaultShaders | ( | ) |
loads the default shaders
CCGLProgram* programForKey | ( | const char * | key) |
returns a GL program for a given key
var getProgram | ( | var | key) |
returns a GL program for a given key
local programForKey | ( | local | key) |
returns a GL program for a given key
|
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.
void reloadDefaultShaders | ( | ) |
reload the default shaders
var reloadDefaultShaders | ( | ) |
reload the default shaders
local reloadDefaultShaders | ( | ) |
reload the default shaders
|
static |
returns the shared instance
|
static |
returns the shared instance
|
static |
returns the shared instance