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:
Inheritance graph
[legend]
Collaboration diagram for CC3OpenGLES11Light:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initWithParent:withLightIndex:

Static Public Member Functions

(id) + trackerWithParent:withLightIndex:

Properties

CC3OpenGLES11StateTrackerLightColorambientColor
CC3OpenGLES11StateTrackerLightFloatconstantAttenuation
CC3OpenGLES11StateTrackerLightColordiffuseColor
CC3OpenGLES11StateTrackerServerCapabilitylight
CC3OpenGLES11StateTrackerLightFloatlinearAttenuation
CC3OpenGLES11StateTrackerLightVector4position
CC3OpenGLES11StateTrackerLightFloatquadraticAttenuation
CC3OpenGLES11StateTrackerLightColorspecularColor
CC3OpenGLES11StateTrackerLightFloatspotCutoffAngle
CC3OpenGLES11StateTrackerLightVectorspotDirection
CC3OpenGLES11StateTrackerLightFloatspotExponent

Detailed Description

CC3OpenGLES11Light manages trackers for an individual light.

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


Member Function Documentation

- (id) initWithParent: (CC3OpenGLES11StateTracker *)  aTracker
withLightIndex: (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) trackerWithParent: (CC3OpenGLES11StateTracker *)  aTracker
withLightIndex: (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).

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

Tracks spot cutoff angle (GL name GL_CONSTANT_ATTENUATION).

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

Tracks diffuse color (GL name GL_DIFFUSE).

- (CC3OpenGLES11StateTrackerServerCapability *) light [read, write, retain]

Tracks the light capability (GL capability name GL_LIGHTi).

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

Tracks spot cutoff angle (GL name GL_LINEAR_ATTENUATION).

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

Tracks position (GL name GL_POSITION).

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

Tracks spot cutoff angle (GL name GL_QUADRATIC_ATTENUATION).

- (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).

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

Tracks spot cutoff angle (GL name GL_SPOT_EXPONENT).


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