Public Member Functions | Static Public Member Functions | Properties

CC3OpenGLES11Light Class Reference

CC3OpenGLES11Light manages trackers for an individual light. More...

#import <CC3OpenGLES11Lighting.h>

Inheritance diagram for CC3OpenGLES11Light:
CC3OpenGLES11StateTrackerManager CC3OpenGLES11StateTracker

List of all members.

Public Member Functions

(id) - initWithLightIndex:

Static Public Member Functions

(id) + trackerWithLightIndex:

Properties

CC3OpenGLES11StateTrackerLightColorambientColor
CC3OpenGLES11StateTrackerLightColordiffuseColor
CC3OpenGLES11StateTrackerLightVector4position
CC3OpenGLES11StateTrackerLightColorspecularColor
CC3OpenGLES11StateTrackerLightFloatspotCutoffAngle
CC3OpenGLES11StateTrackerLightVectorspotDirection

Detailed Description

The property lightIndex identifies the particular light for which state is being tracked.


Member Function Documentation

- (id) initWithLightIndex: (GLuint)  ltIndx

Initializes this instance to track GL state 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.

+ (id) trackerWithLightIndex: (GLuint)  ltIndx

Allocates and initializes an autoreleased instance to track GL state 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

- (CC3OpenGLES11StateTrackerLightColor *) ambientColor [read, write, retain]

Tracks ambient color (GL name GL_AMBIENT).

- (CC3OpenGLES11StateTrackerLightColor *) diffuseColor [read, write, retain]

Tracks diffuse color (GL name GL_DIFFUSE).

- (CC3OpenGLES11StateTrackerLightVector4 *) position [read, write, retain]

Tracks position (GL name GL_POSITION).

- (CC3OpenGLES11StateTrackerLightColor *) specularColor [read, write, retain]

Tracks specular color (GL name GL_SPECULAR).

- (CC3OpenGLES11StateTrackerLightFloat *) spotCutoffAngle [read, write, retain]

Tracks spot cutoff angle (GL name GL_SPOT_CUTOFF).

- (CC3OpenGLES11StateTrackerLightVector *) spotDirection [read, write, retain]

Tracks spot direction (GL name GL_SPOT_DIRECTION).


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