Inherits from NSObject
Declared in CCShaderCache.h

Overview

CCShaderCache Singleton that stores manages GL shaders

Tasks

Class Methods

purgeSharedShaderCache

purges the cache. It releases the retained instance.

+ (void)purgeSharedShaderCache

Declared In

CCShaderCache.h

sharedShaderCache

returns the shared instance

+ (CCShaderCache *)sharedShaderCache

Declared In

CCShaderCache.h

Instance Methods

addProgram:forKey:

adds a CCGLProgram to the cache for a given name

- (void)addProgram:(CCGLProgram *)program forKey:(NSString *)key

Declared In

CCShaderCache.h

loadDefaultShaders

loads the default shaders

- (void)loadDefaultShaders

Declared In

CCShaderCache.h

programForKey:

returns a GL program for a given key

- (CCGLProgram *)programForKey:(NSString *)key

Declared In

CCShaderCache.h