GLProgramCache Singleton that stores manages GLProgram objects (shaders) More...
#include <CCGLProgramCache.h>
Public Member Functions | |
GLProgramCache () | |
ctor () | |
GLProgramCache () | |
~GLProgramCache () | |
void | loadDefaultGLPrograms () |
loads the default shaders More... | |
var | loadDefaultGLPrograms () |
loads the default shaders More... | |
local | loadDefaultGLPrograms () |
loads the default shaders More... | |
CC_DEPRECATED_ATTRIBUTE void | loadDefaultShaders () |
local | loadDefaultShaders () |
void | reloadDefaultGLPrograms () |
reload the default shaders More... | |
local | reloadDefaultGLPrograms () |
reload the default shaders More... | |
CC_DEPRECATED_ATTRIBUTE void | reloadDefaultShaders () |
local | reloadDefaultShaders () |
GLProgram * | getGLProgram (const std::string &key) |
returns a GL program for a given key More... | |
CC_DEPRECATED_ATTRIBUTE GLProgram * | getProgram (const std::string &key) |
local | getProgram ( local key) |
CC_DEPRECATED_ATTRIBUTE GLProgram * | programForKey (const std::string &key) |
local | programForKey ( local key) |
void | addGLProgram (GLProgram *program, const std::string &key) |
adds a GLProgram to the cache for a given name More... | |
var | addGLProgram ( var program, var key) |
adds a GLProgram to the cache for a given name More... | |
local | addGLProgram ( local program, local key) |
adds a GLProgram to the cache for a given name More... | |
CC_DEPRECATED_ATTRIBUTE void | addProgram (GLProgram *program, const std::string &key) |
var | addProgram ( var program, var key) |
local | addProgram ( local program, local key) |
Public Member Functions inherited from Ref | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
Static Public Member Functions | |
static GLProgramCache * | getInstance () |
returns the shared instance More... | |
var | getInstance () |
returns the shared instance More... | |
local | getInstance () |
returns the shared instance More... | |
static void | destroyInstance () |
purges the cache. More... | |
var | destroyInstance () |
purges the cache. More... | |
local | destroyInstance () |
purges the cache. More... | |
static CC_DEPRECATED_ATTRIBUTE GLProgramCache * | sharedShaderCache () |
local | sharedShaderCache () |
static CC_DEPRECATED_ATTRIBUTE void | purgeSharedShaderCache () |
local | purgeSharedShaderCache () |
Additional Inherited Members | |
Protected Member Functions inherited from Ref | |
Ref () | |
Constructor. More... | |
Protected Attributes inherited from Ref | |
unsigned int | _referenceCount |
count of references More... | |
GLProgramCache Singleton that stores manages GLProgram objects (shaders)
GLProgramCache | ( | ) |
var ctor | ( | ) |
local GLProgramCache | ( | ) |
~GLProgramCache | ( | ) |
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
|
inline |
|
inline |
|
inline |
|
static |
purges the cache.
It releases the retained instance.
|
static |
purges the cache.
It releases the retained instance.
|
static |
purges the cache.
It releases the retained instance.
var getGLProgram | ( | var | key | ) |
returns a GL program for a given key
local getGLProgram | ( | local | key | ) |
returns a GL program for a given key
|
static |
returns the shared instance
|
static |
returns the shared instance
|
static |
returns the shared instance
|
inline |
|
inline |
|
inline |
void loadDefaultGLPrograms | ( | ) |
loads the default shaders
var loadDefaultGLPrograms | ( | ) |
loads the default shaders
local loadDefaultGLPrograms | ( | ) |
loads the default shaders
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
|
static |
void reloadDefaultGLPrograms | ( | ) |
reload the default shaders
var reloadDefaultGLPrograms | ( | ) |
reload the default shaders
local reloadDefaultGLPrograms | ( | ) |
reload the default shaders
|
inline |
|
inline |
|
inline |
|
static |
|
static |
|
static |