Public Member Functions | Static Public Member Functions | Properties

CC3OpenGLES11StateTrackerColorFixedAndFloat Class Reference

A CC3OpenGLES11StateTrackerPrimitive that tracks a color GL state value, as either a float or fixed value. More...

#import <CC3OpenGLES11StateTracker.h>

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

List of all members.

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

Detailed Description

A CC3OpenGLES11StateTrackerPrimitive that tracks a color GL state value, as either a float or fixed value.


Member Function Documentation

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


Property Documentation

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


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