GLProgramCache Singleton that stores manages GLProgram objects (shaders)
More...
#include <CCGLProgramCache.h>
GLProgramCache Singleton that stores manages GLProgram objects (shaders)
- Since
- v2.0
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 |
|
) |
| |
|
inline |
static void destroyInstance |
( |
| ) |
|
|
static |
purges the cache.
It releases the retained instance.
GLProgram* getGLProgram |
( |
const std::string & |
key | ) |
|
returns a GL program for a given key
returns the shared instance
GLProgram* getProgram |
( |
const std::string & |
key | ) |
|
|
inline |
void loadDefaultGLPrograms |
( |
| ) |
|
loads the default shaders
void loadDefaultShaders |
( |
| ) |
|
|
inline |
GLProgram* programForKey |
( |
const std::string & |
key | ) |
|
|
inline |
static void purgeSharedShaderCache |
( |
| ) |
|
|
static |
void reloadDefaultGLPrograms |
( |
| ) |
|
reload the default shaders
void reloadDefaultShaders |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file:
- /Users/huihoo/Software/huihoo-code/cocos2d-x/cocos2d-x-3.3/cocos/renderer/CCGLProgramCache.h