CCRenderState Class Reference
| Inherits from | NSObject |
| Conforms to | NSCopying |
| Declared in | CCRenderer.h |
Overview
A render state encapsulates how an object will be draw. What shader it will use, what texture, what blending mode, etc.
Class Methods
Instance Methods
initWithBlendMode:shader:shaderUniforms:
Create an uncached blending mode for a given blending mode, shader and set of uncopied uniform values.
- (instancetype)initWithBlendMode:(CCBlendMode *)blendMode shader:(CCShader *)shader shaderUniforms:(NSDictionary *)shaderUniformsDeclared In
CCRenderer.hinitWithBlendMode:shader:shaderUniforms:copyUniforms:
Create an uncached blending mode for a given blending mode, shader and set of uniform values. Allowing the uniform dictionary to be copied allows the render state to be immutable and used more optimally.
- (instancetype)initWithBlendMode:(CCBlendMode *)blendMode shader:(CCShader *)shader shaderUniforms:(NSDictionary *)shaderUniforms copyUniforms:(BOOL)copyUniformsDeclared In
CCRenderer.h