00001
00002
00003
00004
00005
00006
00007
00008
00009 #import <Cocoa/Cocoa.h>
00010 #import <OpenGL/OpenGL.h>
00011
00012 @class O3D_Vector4;
00013
00015 @interface O3D_Light : NSObject {
00017 float *ambient;
00019 float *diffuse;
00021 int lightNumber;
00023 O3D_Vector4 *position;
00025 O3D_Vector4 *direction;
00027 float attenuation;
00028 }
00029
00030 @property (nonatomic) float *ambient, *diffuse;
00031 @property (nonatomic) int lightNumber;
00032 @property (nonatomic) float attenuation;
00033 @property (nonatomic, retain) O3D_Vector4 *position, *direction;
00034
00036 - (id) initWithPosition:(float[4])aPosition ambientColor:(float[4])ambientColor diffuseColor:(float[4])diffuseColor usingLightNumber:(int)num;
00037
00039 - (int) getLightConstant:(int)aLightNumber;
00041 - (void) load;
00043 - (void) moveX:(float)x Y:(float)y Z:(float)z;
00044
00045 @end