v2.0.2
Instance Methods | Class Methods | List of all members
CC3GLSLUniformOverride Class Reference

#import <CC3GLSLVariable.h>

Inheritance diagram for CC3GLSLUniformOverride:
Inheritance graph
[legend]

Instance Methods

(id) - initForProgramUniform:andPureColorProgramUniform:
 
(BOOL) - updateIfOverriding:
 
- Instance Methods inherited from CC3GLSLUniform
(void) - setBoolean:
 
(void) - setBoolean:at:
 
(void) - setBooleanVectorX:andY:
 
(void) - setBooleanVectorX:andY:andZ:
 
(void) - setBooleanVectorX:andY:andZ:andW:
 
(void) - setBooleanVectorX:andY:andZ:andW:at:
 
(void) - setBooleanVectorX:andY:andZ:at:
 
(void) - setBooleanVectorX:andY:at:
 
(void) - setColor4B:
 
(void) - setColor4B:at:
 
(void) - setColor4F:
 
(void) - setColor4F:at:
 
(void) - setFloat:
 
(void) - setFloat:at:
 
(void) - setInteger:
 
(void) - setInteger:at:
 
(void) - setIntPoint:
 
(void) - setIntPoint:at:
 
(void) - setIntVector4:
 
(void) - setIntVector4:at:
 
(void) - setIntVector:
 
(void) - setIntVector:at:
 
(void) - setMatrix3x3:
 
(void) - setMatrix3x3:at:
 
(void) - setMatrix4x3:
 
(void) - setMatrix4x3:at:
 
(void) - setMatrix4x4:
 
(void) - setMatrix4x4:at:
 
(void) - setPoint:
 
(void) - setPoint:at:
 
(void) - setQuaternion:
 
(void) - setQuaternion:at:
 
(void) - setValueFromUniform:
 
(void) - setVector4:
 
(void) - setVector4:at:
 
(void) - setVector:
 
(void) - setVector:at:
 
(BOOL) - updateGLValueWithVisitor:
 
(NSString *) - valueDescription
 
- Instance Methods inherited from CC3GLSLVariable
(id) - copyAsClass:
 
(id) - copyWithZone:asClass:
 
(NSString *) - fullDescription
 
(id) - initInProgram:atIndex:
 
(void) - normalizeName
 
(void) - populateFrom:
 

Class Methods

(id) + uniformOverrideForProgramUniform:andPureColorProgramUniform:
 

Additional Inherited Members

- Properties inherited from CC3GLSLUniform
GLenum type
 

Detailed Description

Instances of this class are held in the CC3ShaderContext to allow the value of a uniform to be set directly by the application, on a node-by-node basis, to override the value retrieved automatically from the scene via the semantic context of the uniform variable.

An instance of this class does not set the state of the GL engine directly. Instead, it sets the value of the actual uniform within the program and pure color program that it overrides.

Method Documentation

- (id) initForProgramUniform: (CC3GLSLUniform *)  uniform
andPureColorProgramUniform: (CC3GLSLUniform *)  pureColorUniform 

Initializes this instance to override the specified uniform, plus the specified uniform in the related pure color program.

The uniform parameter must not be nil. However, in many cases, the pureColorUniform parameter can and will be nil.

+ (id) uniformOverrideForProgramUniform: (CC3GLSLUniform *)  uniform
andPureColorProgramUniform: (CC3GLSLUniform *)  pureColorUniform 

Allocates and initializes an instance to override the specified uniform, plus the specified uniform in the related pure color program.

The uniform parameter must not be nil. However, in many cases, the pureColorUniform parameter can and will be nil.

- (BOOL) updateIfOverriding: (CC3GLSLUniform *)  uniform

If this instance is overriding the specified uniform, either from the program or the pure color program, the value of the specified uniform is updated from the value of this instance.

Returns whether the value of the specified uniform was updated.


The documentation for this class was generated from the following file: