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

(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

Detailed Description

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


Member Function Documentation

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


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: