00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __RE_LightVal__
00019 #define __RE_LightVal__
00020
00021 #include "RE_API.h"
00022
00023 class RE_Light;
00024
00025 class RE_API RE_LightVal
00026 {
00027 public:
00028 typedef enum {
00029 SPOT_LIGHT,
00030 INFINITE_LIGHT,
00031 AMBIENT_LIGHT
00032 } LightType;
00033
00034 float position[4];
00035 float ambient[4];
00036 float diffuse[4];
00037 float specular[4];
00038 float spotdirection[3];
00039 float spotcutoff;
00040 float spotexponent;
00041 float atten[3];
00042 LightType light_type;
00043 int gl_index;
00044 unsigned is_on:1,
00045 is_diffuse:1,
00046 is_specular:1;
00047
00048 RE_Light *myLight;
00049
00050 protected:
00051
00052 int operator==(const RE_LightVal &);
00053 };
00054
00055 #endif // __RE_LightVal__