Class CCShaderCache

#include <Geode/cocos/shaders/CCShaderCache.h>
classCCShaderCache:publiccocos2d::CCObject{ ... }

Since v2.0

CCShaderCache Singleton that stores manages GL shaders

Examples0
Public static methods2
staticcocos2d::CCShaderCache*sharedShaderCache()

returns the shared instance

staticvoidpurgeSharedShaderCache()

purges the cache. It releases the retained instance.

Public member functions4
voidloadDefaultShaders()

loads the default shaders

voidreloadDefaultShaders()

reload the default shaders

cocos2d::CCGLProgram*programForKey()

returns a GL program for a given key

voidaddProgram(,)

adds a CCGLProgram to the cache for a given name

Fields0
Protected member functions0
Protected fields0