Line | |
---|
1 | #ifndef __LIGHT_H
|
---|
2 | #define __LIGHT_H
|
---|
3 |
|
---|
4 | #include "common.h"
|
---|
5 | #include "Vector3.h"
|
---|
6 | #include "Material.h"
|
---|
7 |
|
---|
8 |
|
---|
9 | namespace CHCDemoEngine
|
---|
10 | {
|
---|
11 |
|
---|
12 | /** Class representing a directional light source
|
---|
13 | */
|
---|
14 | class Light
|
---|
15 | {
|
---|
16 | public:
|
---|
17 |
|
---|
18 | Light(const Vector3 &dir, const RgbaColor &col): mDirection(dir), mColor(col) {}
|
---|
19 |
|
---|
20 | Vector3 GetDirection() const { return mDirection; }
|
---|
21 |
|
---|
22 | RgbaColor GetColor() const { return mColor; }
|
---|
23 |
|
---|
24 |
|
---|
25 | protected:
|
---|
26 |
|
---|
27 | Vector3 mDirection;
|
---|
28 | RgbaColor mColor;
|
---|
29 | };
|
---|
30 |
|
---|
31 | }
|
---|
32 |
|
---|
33 | #endif // __LIGHT_H |
---|
Note: See
TracBrowser
for help on using the repository browser.