ShaderCache Singleton that stores manages GL shaders.
More...
#include <CCShaderCache.h>
ShaderCache Singleton that stores manages GL shaders.
- Since
- v2.0
void addProgram |
( |
GLProgram * |
program, |
|
|
const std::string & |
key |
|
) |
| |
adds a GLProgram to the cache for a given name
var addProgram |
( |
var |
program, |
|
|
var |
key |
|
) |
| |
adds a GLProgram to the cache for a given name
local addProgram |
( |
local |
program, |
|
|
local |
key |
|
) |
| |
adds a GLProgram to the cache for a given name
static void destroyInstance |
( |
) | |
|
|
static |
purges the cache.
It releases the retained instance.
purges the cache.
It releases the retained instance.
local destroyInstance |
( |
) | |
|
|
static |
purges the cache.
It releases the retained instance.
returns the shared instance
returns the shared instance
returns the shared instance
GLProgram* getProgram |
( |
const std::string & |
key) | |
|
returns a GL program for a given key
var getProgram |
( |
var |
key) | |
|
returns a GL program for a given key
local getProgram |
( |
local |
key) | |
|
returns a GL program for a given key
void loadDefaultShaders |
( |
) | |
|
loads the default shaders
var loadDefaultShaders |
( |
) | |
|
loads the default shaders
local loadDefaultShaders |
( |
) | |
|
loads the default shaders
var purgeSharedShaderCache |
( |
) | |
|
|
static |
local purgeSharedShaderCache |
( |
) | |
|
|
static |
void reloadDefaultShaders |
( |
) | |
|
reload the default shaders
var reloadDefaultShaders |
( |
) | |
|
reload the default shaders
local reloadDefaultShaders |
( |
) | |
|
reload the default shaders
var sharedShaderCache |
( |
) | |
|
|
static |
local sharedShaderCache |
( |
) | |
|
|
static |
The documentation for this class was generated from the following file: