Main Page   Class Hierarchy   Compound List   File List   Compound Members  

light.hpp

00001 #ifndef light_H
00002 #define light_H
00003 
00004 #include <GL/gl.h>
00005 //#include "objloader.hpp"
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         // Keep track of where the camera is so bitmap can be oriented
00044         // properly.
00045         camera *viewer;  
00046 
00048 
00051         float maxFade;
00053         float minFade;
00055         float scale;
00056         
00057         //objloader *lightobj;
00058 
00059 
00064         GLfloat Ka[4];  // Ambient 
00065         GLfloat Kd[4];  // Diffuse
00066         GLfloat Ks[4]; // Specular
00067 
00069         int GL_LIGHTX;
00070         
00072         bool verbose;
00073 };
00074 
00075 
00076 #endif
00077 

Generated on Sat May 10 10:09:36 2003 for volume-src-limited by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002