CC3OpenGLES11StateTrackerPolygonOffset is a type of CC3OpenGLES11StateTrackerComposite that tracks the polygon offset factor and units GL state values. More...
#import <CC3OpenGLES11State.h>
Public Member Functions | |
(void) | - applyFactor:andUnits: |
Properties | |
CC3OpenGLES11StateTrackerFloat * | factor |
CC3OpenGLES11StateTrackerFloat * | units |
CC3OpenGLES11StateTrackerPolygonOffset is a type of CC3OpenGLES11StateTrackerComposite that tracks the polygon offset factor and units GL state values.
The factor and units values are read from GL individually, using distinct primitive trackers for each value. All three values are set into the GL engine together using a single call to the GL set function glPolygonOffset.
The originalValueHandling property is set to kCC3GLESStateOriginalValueReadOnceAndRestore, which will cause the state to be automatically read once, on the first invocation of the open method, and to be automatically restored on each invocation of the close method.
- (void) applyFactor: | (GLfloat) | factorValue | |
andUnits: | (GLfloat) | unitsValue | |
Sets the polygon offset factor and units values together.
The values will be set in the GL engine only if at least one of the values has actually changed.
Uses the GL set function glPolygonOffset to set the values in the GL engine.
- (CC3OpenGLES11StateTrackerFloat *) factor [read, write, retain] |
Tracks the offset factor value (GL get name GL_POLYGON_OFFSET_FACTOR)
- (CC3OpenGLES11StateTrackerFloat *) units [read, write, retain] |
Tracks the offset units value (GL get name GL_POLYGON_OFFSET_UNITS)