Public Member Functions | Properties

CC3OpenGLES11Matrices Class Reference

CC3OpenGLES11Matrices manages trackers for matrix state. More...

#import <CC3OpenGLES11Matrices.h>

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

List of all members.

Public Member Functions

(CC3OpenGLES11MatrixPalette *) - paletteAt:

Properties

CC3OpenGLES11StateTrackerEnumerationactivePalette
CC3OpenGLES11StateTrackerEnumerationmode
CC3OpenGLES11MatrixStackmodelview
CCArray * paletteMatrices
GLuint paletteMatrixCount
CC3OpenGLES11MatrixStackprojection

Detailed Description

CC3OpenGLES11Matrices manages trackers for matrix state.


Member Function Documentation

- (CC3OpenGLES11MatrixPalette*) paletteAt: (GLuint)  index

Returns the tracker for the palette matrix with the specified index.

The index parameter must be between zero and the number of available palette matrices minus one, inclusive. The number of available palette matrices can be retrieved from [CC3OpenGLES11Engine engine].platform.maxPaletteMatrices.value.

To conserve memory and processing, palette matrices are lazily allocated when requested by this method.


Property Documentation

- (CC3OpenGLES11StateTrackerEnumeration *) activePalette [read, write, retain]

Tracks active palette matrix (GL get name not applicable and set function glCurrentPaletteMatrixOES).

- (CC3OpenGLES11StateTrackerEnumeration *) mode [read, write, retain]

Tracks matrix mode (GL get name GL_MATRIX_MODE and set function glMatrixMode).

- (CC3OpenGLES11MatrixStack *) modelview [read, write, retain]

Manages the modelview matrix stack.

- (CCArray *) paletteMatrices [read, write, retain]

Manages the palette of matrices.

Do not access individual texture unit trackers through this property. Use the paletteAt: method instead.

The number of available texture units can be retrieved from [CC3OpenGLES11Engine engine].platform.maxPaletteMatrices.value.

To conserve memory and processing, palette units are lazily allocated when requested by the paletteAt: method. The array returned by this property will initially be empty, and will subsequently contain a number of palette matrices one more than the largest value passed to paletteAt:.

- (GLuint) paletteMatrixCount [read, assign]

Returns the number of active palette matrices.

This value will be between zero and the maximum number of palette matrices, as determined from [CC3OpenGLES11Engine engine].platform.maxPaletteMatrices.value.

To conserve memory and processing, palette matrices are lazily allocated when requested by the paletteAt: method. The value of this property will initially be zero, and will subsequently be one more than the largest value passed to paletteAt:.

- (CC3OpenGLES11MatrixStack *) projection [read, write, retain]

Manages the projection matrix stack.


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