00001 #ifndef light_H
00002 #define light_H
00003
00004 #include <GL/gl.h>
00005
00006 #include "camera.hpp"
00007 #include "misc.hpp"
00009
00028 class light:public movable
00029 {
00030 public:
00031
00032 light();
00033 ~light();
00034
00035 light(camera *viewer, int number, float maxFade = 0, float minFade = 0, float scale = 1.0f);
00036
00037 void draw();
00038 void drawDim(vector3f distant);
00039 void update();
00040
00041 void getBoundingBox();
00042
00043
00044
00045 camera *viewer;
00046
00048
00051 float maxFade;
00053 float minFade;
00055 float scale;
00056
00057
00058
00059
00064 GLfloat Ka[4];
00065 GLfloat Kd[4];
00066 GLfloat Ks[4];
00067
00069 int GL_LIGHTX;
00070
00072 bool verbose;
00073 };
00074
00075
00076 #endif
00077