CCShaderCache Singleton that stores manages GL shaders.
More...
#include <CCShaderCache.h>
CCShaderCache Singleton that stores manages GL shaders.
- Since
- v2.0
void addProgram |
( |
CCGLProgram * |
program, |
|
|
const char * |
key |
|
) |
| |
var addProgram |
( |
var |
program, |
|
|
var |
key |
|
) |
| |
local addProgram |
( |
local |
program, |
|
|
local |
key |
|
) |
| |
void loadDefaultShaders |
( |
) | |
|
loads the default shaders
var loadDefaultShaders |
( |
) | |
|
loads the default shaders
local loadDefaultShaders |
( |
) | |
|
loads the default shaders
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 void purgeSharedShaderCache |
( |
) | |
|
|
static |
purges the cache.
It releases the retained instance.
var purgeSharedShaderCache |
( |
) | |
|
|
static |
purges the cache.
It releases the retained instance.
local purgeSharedShaderCache |
( |
) | |
|
|
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
returns the shared instance
returns the shared instance
local sharedShaderCache |
( |
) | |
|
|
static |
returns the shared instance
The documentation for this class was generated from the following file: