CC3OpenGLES11Light manages trackers for an individual light. More...
#import <CC3OpenGLES11Lighting.h>
CC3OpenGLES11Light manages trackers for an individual light.
The property lightIndex identifies the particular light for which state is being tracked.
- (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.
- (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).