Public Member Functions | Properties

CC3OpenGLES11Lighting Class Reference

CC3OpenGLES11Lighting manages trackers for lighting state. More...

#import <CC3OpenGLES11Lighting.h>

Inheritance diagram for CC3OpenGLES11Lighting:
CC3OpenGLES11StateTrackerManager CC3OpenGLES11StateTracker

List of all members.

Public Member Functions

(CC3OpenGLES11Light *) - lightAt:

Properties

NSMutableArray * lights
CC3OpenGLES11StateTrackerWorldLightColorworldAmbientLight

Detailed Description


Member Function Documentation

- (CC3OpenGLES11Light*) lightAt: (GLuint)  ltIndx

Returns the tracker for the light with the specified index.

Index ltIndx corresponds to i in the GL capability name GL_LIGHTi, and must be between zero and the number of available lights minus one, inclusive.

The number of available lights can be retrieved from [CC3OpenGLES11Engine engine].platform.maxLights.value.


Property Documentation

- (NSMutableArray *) lights [read, write, retain]

Tracks lighting state for each light (GL capability name GL_LIGHTi).

Do not access individual light trackers through this property. Use the lightAt: method instead.

The number of available lights is retrieved from [CC3OpenGLES11Engine engine].platform.maxLights.value.

- (CC3OpenGLES11StateTrackerWorldLightColor *) worldAmbientLight [read, write, retain]

Tracks world ambient light color (GL name GL_LIGHT_MODEL_AMBIENT).


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