Some GLprogram state could be shared. More...
Public Member Functions | |
GLProgramState * | getGLProgramState (GLProgram *program) |
Get the shared GLProgramState by the owner GLProgram. More... | |
local | getGLProgramState ( local program) |
Get the shared GLProgramState by the owner GLProgram. More... | |
void | removeAllGLProgramState () |
Remove all the cached GLProgramState. More... | |
void | removeUnusedGLProgramState () |
Remove unused GLProgramState. More... | |
Static Public Member Functions | |
static GLProgramStateCache * | getInstance () |
Get the GLProgramStateCache singleton instance. More... | |
local | getInstance () |
Get the GLProgramStateCache singleton instance. More... | |
static void | destroyInstance () |
Destroy the GLProgramStateCache singleton. More... | |
Some GLprogram state could be shared.
GLProgramStateCache is used to cache this, and will reuse the old GLProgramState, which will accelerate the creation of game objects such as sprites, particles etc.
|
static |
Get the GLProgramStateCache singleton instance.
|
static |
Get the GLProgramStateCache singleton instance.
|
static |
Get the GLProgramStateCache singleton instance.
|
static |
Destroy the GLProgramStateCache singleton.
|
static |
Destroy the GLProgramStateCache singleton.
|
static |
Destroy the GLProgramStateCache singleton.
GLProgramState* getGLProgramState | ( | GLProgram * | program | ) |
Get the shared GLProgramState by the owner GLProgram.
var getGLProgramState | ( | var | program | ) |
Get the shared GLProgramState by the owner GLProgram.
local getGLProgramState | ( | local | program | ) |
Get the shared GLProgramState by the owner GLProgram.
void removeAllGLProgramState | ( | ) |
Remove all the cached GLProgramState.
var removeAllGLProgramState | ( | ) |
Remove all the cached GLProgramState.
local removeAllGLProgramState | ( | ) |
Remove all the cached GLProgramState.
void removeUnusedGLProgramState | ( | ) |
Remove unused GLProgramState.
var removeUnusedGLProgramState | ( | ) |
Remove unused GLProgramState.
local removeUnusedGLProgramState | ( | ) |
Remove unused GLProgramState.