A CC3OpenGLES11StateTrackerPrimitive that tracks an integer GL state value. More...
#import <CC3OpenGLES11StateTracker.h>
Public Member Functions | |
(BOOL) | - attemptSetValue: |
Static Public Member Functions | |
(id) | + trackerForState:andGLSetFunction:andOriginalValueHandling: |
Properties | |
GLint | originalValue |
CC3SetGLIntegerFunction * | setGLFunction |
GLint | value |
- (BOOL) attemptSetValue: | (GLint) | aValue |
Attempts to set the 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: | (CC3SetGLIntegerFunction *) | setGLFunc | |
Initializes this instance with the specified enumerated GL name, and to use the specified gl* function to set the state in the GL engine.
- (id) initForState: | (GLenum) | aName | |
andGLSetFunction: | (CC3SetGLIntegerFunction *) | setGLFunc | |
andOriginalValueHandling: | (CC3GLESStateOriginalValueHandling) | origValueHandling | |
Initializes this instance with the specified enumerated GL name, to use the specified gl* function to set the state in the GL engine, and to handle original values as specified.
+ (id) trackerForState: | (GLenum) | aName | |
andGLSetFunction: | (CC3SetGLIntegerFunction *) | setGLFunc | |
Allocates and initializes an autoreleased instance with the specified enumerated GL name, and to use the specified gl* function to set the state in the GL engine.
+ (id) trackerForState: | (GLenum) | aName | |
andGLSetFunction: | (CC3SetGLIntegerFunction *) | setGLFunc | |
andOriginalValueHandling: | (CC3GLESStateOriginalValueHandling) | origValueHandling | |
Allocates and initializes an autoreleased instance with the specified enumerated GL name, to use the specified gl* function to set the state in the GL engine, and to handle original values as specified.
- (GLint) originalValue [read, write, assign] |
The value of the GL state when the open method was invoked.
- (CC3SetGLIntegerFunction *) setGLFunction [read, write, assign] |
A pointer to the GL function (gl*) used to set this value in the GL engine.
- (GLint) value [read, write, assign] |
The current value of the GL state.