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
var addGLProgram |
( |
var |
program, |
|
|
var |
key |
|
) |
| |
adds a GLProgram to the cache for a given name
local addGLProgram |
( |
local |
program, |
|
|
local |
key |
|
) |
| |
adds a GLProgram to the cache for a given name
void addProgram |
( |
GLProgram * |
program, |
|
|
const std::string & |
key |
|
) |
| |
|
inline |
var addProgram |
( |
var |
program, |
|
|
var |
key |
|
) |
| |
|
inline |
local addProgram |
( |
local |
program, |
|
|
local |
key |
|
) |
| |
|
inline |
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.
GLProgram* getGLProgram |
( |
const std::string & |
key | ) |
|
returns a GL program for a given key
var getGLProgram |
( |
var |
key | ) |
|
returns a GL program for a given key
local getGLProgram |
( |
local |
key | ) |
|
returns a GL program for a given key
returns the shared instance
returns the shared instance
returns the shared instance
GLProgram* getProgram |
( |
const std::string & |
key | ) |
|
|
inline |
var getProgram |
( |
var |
key | ) |
|
|
inline |
local getProgram |
( |
local |
key | ) |
|
|
inline |
void loadDefaultGLPrograms |
( |
| ) |
|
loads the default shaders
var loadDefaultGLPrograms |
( |
| ) |
|
loads the default shaders
local loadDefaultGLPrograms |
( |
| ) |
|
loads the default shaders
void loadDefaultShaders |
( |
| ) |
|
|
inline |
var loadDefaultShaders |
( |
| ) |
|
|
inline |
local loadDefaultShaders |
( |
| ) |
|
|
inline |
GLProgram* programForKey |
( |
const std::string & |
key | ) |
|
|
inline |
var programForKey |
( |
var |
key | ) |
|
|
inline |
local programForKey |
( |
local |
key | ) |
|
|
inline |
static void purgeSharedShaderCache |
( |
| ) |
|
|
static |
var purgeSharedShaderCache |
( |
| ) |
|
|
static |
local purgeSharedShaderCache |
( |
| ) |
|
|
static |
void reloadDefaultGLPrograms |
( |
| ) |
|
reload the default shaders
var reloadDefaultGLPrograms |
( |
| ) |
|
reload the default shaders
local reloadDefaultGLPrograms |
( |
| ) |
|
reload the default shaders
void reloadDefaultShaders |
( |
| ) |
|
|
inline |
var reloadDefaultShaders |
( |
| ) |
|
|
inline |
local reloadDefaultShaders |
( |
| ) |
|
|
inline |
var sharedShaderCache |
( |
| ) |
|
|
static |
local sharedShaderCache |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following file: