Public Member Functions | Properties

CC3OpenGLES11StateTrackerPolygonOffset Class Reference

CC3OpenGLES11StateTrackerPolygonOffset is a type of CC3OpenGLES11StateTrackerComposite that tracks the polygon offset factor and units GL state values. More...

#import <CC3OpenGLES11State.h>

Inheritance diagram for CC3OpenGLES11StateTrackerPolygonOffset:
Inheritance graph
[legend]
Collaboration diagram for CC3OpenGLES11StateTrackerPolygonOffset:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(void) - applyFactor:andUnits:

Properties

CC3OpenGLES11StateTrackerFloatfactor
CC3OpenGLES11StateTrackerFloatunits

Detailed Description

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.


Member Function Documentation

- (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.


Property Documentation

- (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)


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