|
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
#import <CCShaderCache.h>
Public Member Functions | |
| (void) | - loadDefaultShaders |
| (CCGLProgram *) | - programForKey: |
| (void) | - addProgram:forKey: |
Static Public Member Functions | |
| (CCShaderCache *) | + sharedShaderCache |
| (void) | + purgeSharedShaderCache |
Protected Attributes | |
| NSMutableDictionary * | _programs |
CCShaderCache Singleton that stores manages GL shaders
| - (void) addProgram: | (CCGLProgram *) | program | |
| forKey: | (NSString *) | key | |
adds a CCGLProgram to the cache for a given name
| - (void) loadDefaultShaders |
loads the default shaders
| - (CCGLProgram *) programForKey: | (NSString *) | key |
returns a GL program for a given key
| + (void) purgeSharedShaderCache |
purges the cache. It releases the retained instance.
returns the shared instance