Public Member Functions | Static Public Member Functions

CC3OpenGLES11MatrixPalette Class Reference

CC3OpenGLES11MatrixPalette provides access to several commands that operate on one matrix the matrix palette. More...

#import <CC3OpenGLES11Matrices.h>

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

List of all members.

Public Member Functions

(id) - initWithParent:forPalette:andModeTracker:
(void) - loadFromModelView

Static Public Member Functions

(id) + trackerWithParent:forPalette:andModeTracker:

Detailed Description

CC3OpenGLES11MatrixPalette provides access to several commands that operate on one matrix the matrix palette.

None of these commands require state tracking.

Even though this class does not track any state, it does rely on the tracker for the matrix mode, to ensure that the matrix mode associated with this matrix stack is active before calling a GL function.


Member Function Documentation

- (id) initWithParent: (CC3OpenGLES11StateTracker *)  aTracker
forPalette: (GLint)  paletteIndex
andModeTracker: (CC3OpenGLES11StateTrackerEnumeration *)  aModeTracker 

Initializes this instance for the GL_MATRIX_PALETTE_OES matrix mode and specified palette index.

The specified aModeTracker is used to ensure that the matrix mode of this matrix is active before issuing any commands.

- (void) loadFromModelView

Loads this matrix palette from the current modelview matrix.

+ (id) trackerWithParent: (CC3OpenGLES11StateTracker *)  aTracker
forPalette: (GLint)  paletteIndex
andModeTracker: (CC3OpenGLES11StateTrackerEnumeration *)  aModeTracker 

Allocates and initializes an autoreleased instance for the GL_MATRIX_PALETTE_OES matrix mode and specified palette index.

The specified aModeTracker is used to ensure that the matrix mode of this matrix is active before issuing any commands.


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