|
@@ -13,7 +13,6 @@
|
13
|
13
|
#include "Vector.h"
|
14
|
14
|
#include "Matrix.h"
|
15
|
15
|
#include "ViewVolume.h"
|
16
|
|
-#include "Light.h"
|
17
|
16
|
#include "World.h"
|
18
|
17
|
#include "SkeletalModel.h"
|
19
|
18
|
#include "Mesh.h"
|
|
@@ -26,6 +25,33 @@
|
26
|
25
|
#endif
|
27
|
26
|
|
28
|
27
|
/*!
|
|
28
|
+ * \brief The GL light class
|
|
29
|
+ */
|
|
30
|
+class Light {
|
|
31
|
+public:
|
|
32
|
+ /*!
|
|
33
|
+ * \brief Type a light can be of
|
|
34
|
+ */
|
|
35
|
+ typedef enum {
|
|
36
|
+ typePoint = 1, //!< Point light
|
|
37
|
+ typeSpot = 2, //!< Spot light
|
|
38
|
+ typeDirectional = 3 //!< Directional light
|
|
39
|
+ } LightType;
|
|
40
|
+
|
|
41
|
+ // These aren't used anywhere? -- xythobuz
|
|
42
|
+ //float mAmbient[4]; //! Ambient color
|
|
43
|
+ //float mDiffuse[4]; //! Diffuse color
|
|
44
|
+ //float mSpecular[4]; //! Specular color
|
|
45
|
+
|
|
46
|
+ vec4_t mPos; //! Light position in 3 space
|
|
47
|
+ vec3_t mDir; //! Light direction
|
|
48
|
+ float mAtt;
|
|
49
|
+ vec4_t mColor; //! Color of light
|
|
50
|
+ vec_t mCutoff; //! Fade out distance
|
|
51
|
+ LightType mType; //! Type of light
|
|
52
|
+};
|
|
53
|
+
|
|
54
|
+/*!
|
29
|
55
|
* \brief RenderRoom used by Renderer
|
30
|
56
|
*/
|
31
|
57
|
class RenderRoom {
|