CC3OpenGLES11Light manages trackers for an individual light. More...
#import <CC3OpenGLES11Lighting.h>
Public Member Functions | |
(id) | - initWithLightIndex: |
Static Public Member Functions | |
(id) | + trackerWithLightIndex: |
Properties | |
CC3OpenGLES11StateTrackerLightColor * | ambientColor |
CC3OpenGLES11StateTrackerLightColor * | diffuseColor |
CC3OpenGLES11StateTrackerLightVector4 * | position |
CC3OpenGLES11StateTrackerLightColor * | specularColor |
CC3OpenGLES11StateTrackerLightFloat * | spotCutoffAngle |
CC3OpenGLES11StateTrackerLightVector * | spotDirection |
The property lightIndex identifies the particular light for which state is being tracked.
- (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.
- (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).