Public Member Functions | Static Public Member Functions | Properties

CC3OpenGLES11StateTrackerViewport Class Reference

CC3OpenGLES11StateTrackerViewport tracks the viewport GL state. More...

#import <CC3OpenGLES11StateTracker.h>

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

List of all members.

Public Member Functions

(id) - initWithParent:forState:andGLSetFunction:
(id) - initWithParent:forState:andGLSetFunction:andOriginalValueHandling:

Static Public Member Functions

(id) + trackerWithParent:forState:andGLSetFunction:
(id) + trackerWithParent:forState:andGLSetFunction:andOriginalValueHandling:

Properties

CC3Viewport originalValue
CC3SetGLViewportFunction * setGLFunction
CC3Viewport value

Detailed Description

CC3OpenGLES11StateTrackerViewport tracks the viewport GL state.

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

- (id) initWithParent: (CC3OpenGLES11StateTracker *)  aTracker
forState: (GLenum)  aName
andGLSetFunction: (CC3SetGLViewportFunction *)  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) initWithParent: (CC3OpenGLES11StateTracker *)  aTracker
forState: (GLenum)  aName
andGLSetFunction: (CC3SetGLViewportFunction *)  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) trackerWithParent: (CC3OpenGLES11StateTracker *)  aTracker
forState: (GLenum)  aName
andGLSetFunction: (CC3SetGLViewportFunction *)  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) trackerWithParent: (CC3OpenGLES11StateTracker *)  aTracker
forState: (GLenum)  aName
andGLSetFunction: (CC3SetGLViewportFunction *)  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.


Property Documentation

- (CC3Viewport) originalValue [read, write, assign]

The value of the GL state when the open method was invoked.

- (CC3SetGLViewportFunction *) setGLFunction [read, write, assign]

A pointer to the GL function (gl*) used to set this value in the GL engine.

- (CC3Viewport) value [read, write, assign]

The current value of the GL state.


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