#import <O3D_Light.h>
Public Member Functions | |
| (id) | - initWithPosition:ambientColor:diffuseColor:usingLightNumber: |
| Initialize with position, ambient and diffuse colors, and an integer that will point to the OpenGL light memory. | |
| (int) | - getLightConstant: |
| Convert integer into GL_LIGHT constant values. | |
| (void) | - load |
| Load the light. | |
| (void) | - moveX:Y:Z: |
| Move the light by the specified amounts; probably should be moveByX... | |
Properties | |
| float * | ambient |
| Ambient light color (4 floats). | |
| float * | diffuse |
| Diffuse light color (4 floats). | |
| int | lightNumber |
| OpenGL light number. | |
| float | attenuation |
| Light attenuation. | |
| O3D_Vector4 * | position |
| Vector representing position. | |
| O3D_Vector4 * | direction |
| Vector representing light direction. | |
1.5.9