A CC3OpenGLES11StateTrackerPrimitive that tracks a color GL state value, as either a float or fixed value. More...
#import <CC3OpenGLES11StateTracker.h>
Public Member Functions | |
(id) | - initWithParent:forState:andGLSetFunction:andGLSetFunctionFixed: |
(id) | - initWithParent:forState:andGLSetFunction:andGLSetFunctionFixed:andOriginalValueHandling: |
(void) | - setGLFixedValue |
Static Public Member Functions | |
(id) | + trackerWithParent:forState:andGLSetFunction:andGLSetFunctionFixed: |
(id) | + trackerWithParent:forState:andGLSetFunction:andGLSetFunctionFixed:andOriginalValueHandling: |
Properties | |
ccColor4B | fixedValue |
CC3SetGLColorFunctionFixed * | setGLFunctionFixed |
A CC3OpenGLES11StateTrackerPrimitive that tracks a color GL state value, as either a float or fixed value.
- (id) initWithParent: | (CC3OpenGLES11StateTracker *) | aTracker | |
forState: | (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) initWithParent: | (CC3OpenGLES11StateTracker *) | aTracker | |
forState: | (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) setGLFixedValue |
Template method to set the fixedValue into the GL engine.
The application should not invoke this method directly.
+ (id) trackerWithParent: | (CC3OpenGLES11StateTracker *) | aTracker | |
forState: | (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) trackerWithParent: | (CC3OpenGLES11StateTracker *) | aTracker | |
forState: | (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.