A CC3OpenGLES11StateTrackerPrimitive that tracks a color GL state value, as either a float or fixed value. More...
#import <CC3OpenGLES11StateTracker.h>
Public Member Functions | |
(BOOL) | - attemptSetFixedValue: |
(id) | - initForState:andGLSetFunction:andGLSetFunctionFixed: |
(id) | - initForState:andGLSetFunction:andGLSetFunctionFixed:andOriginalValueHandling: |
(void) | - logSetFixedValue: |
(void) | - setGLFixedValue |
Static Public Member Functions | |
(id) | + trackerForState:andGLSetFunction:andGLSetFunctionFixed: |
(id) | + trackerForState:andGLSetFunction:andGLSetFunctionFixed:andOriginalValueHandling: |
Properties | |
ccColor4B | fixedValue |
CC3SetGLColorFunctionFixed * | setGLFunctionFixed |
A CC3OpenGLES11StateTrackerPrimitive that tracks a color GL state value, as either a float or fixed value.
- (BOOL) attemptSetFixedValue: | (ccColor4B) | aFixedValue |
Attempts to set the fixed value to the specified value.
If the value has not changed, it will not be set. Returns whether the value was set in GL.
The application should not invoke this method directly.
- (id) initForState: | (GLenum) | aName | |
andGLSetFunction: | (CC3SetGLColorFunction *) | setGLFunc | |
andGLSetFunctionFixed: | (CC3SetGLColorFunctionFixed *) | setGLFuncFixed | |
Initializes this instance with the specified enumerated GL name, and to use the specified gl* functions to set the state in the GL engine.
- (id) initForState: | (GLenum) | aName | |
andGLSetFunction: | (CC3SetGLColorFunction *) | setGLFunc | |
andGLSetFunctionFixed: | (CC3SetGLColorFunctionFixed *) | setGLFuncFixed | |
andOriginalValueHandling: | (CC3GLESStateOriginalValueHandling) | origValueHandling | |
Initializes this instance with the specified enumerated GL name, to use the specified gl* functions to set the state in the GL engine, and to handle original values as specified.
- (void) logSetFixedValue: | (BOOL) | wasSet |
Template method to log the fixedValue set in the GL engine by the setGLFixedValue method.
The wasSet parameter indicates whether the value has changed and was set in the GL engine.
The application should not invoke this method directly.
- (void) setGLFixedValue |
Template method to set the fixedValue into the GL engine.
The application should not invoke this method directly.
+ (id) trackerForState: | (GLenum) | aName | |
andGLSetFunction: | (CC3SetGLColorFunction *) | setGLFunc | |
andGLSetFunctionFixed: | (CC3SetGLColorFunctionFixed *) | setGLFuncFixed | |
Allocates and initializes an autoreleased instance with the specified enumerated GL name, and to use the specified gl* functions to set the state in the GL engine.
+ (id) trackerForState: | (GLenum) | aName | |
andGLSetFunction: | (CC3SetGLColorFunction *) | setGLFunc | |
andGLSetFunctionFixed: | (CC3SetGLColorFunctionFixed *) | setGLFuncFixed | |
andOriginalValueHandling: | (CC3GLESStateOriginalValueHandling) | origValueHandling | |
Allocates and initializes an autoreleased instance with the specified enumerated GL name, to use the specified gl* functions to set the state in the GL engine, and to handle original values as specified.
- (ccColor4B) fixedValue [read, write, assign] |
The current value of the GL state, in fixed bits.
- (CC3SetGLColorFunctionFixed *) setGLFunctionFixed [read, write, assign] |
A pointer to the GL function (gl*) used to set this value in the GL engine.