Last change
on this file since 688 was
676,
checked in by landauf, 17 years ago
|
- include guards
- readded Light (maybe i'll remove it again, but at the moment i want it to stay)
|
File size:
787 bytes
|
Line | |
---|
1 | #ifndef _Light_H__ |
---|
2 | #define _Light_H__ |
---|
3 | |
---|
4 | #include <string> |
---|
5 | |
---|
6 | #include "OgreLight.h" |
---|
7 | #include "OgreColourValue.h" |
---|
8 | |
---|
9 | namespace orxonox |
---|
10 | { |
---|
11 | class Light |
---|
12 | { |
---|
13 | public: |
---|
14 | Light(); |
---|
15 | ~Light(); |
---|
16 | void setLight(Ogre::Light::LightTypes type = Ogre::Light::LT_POINT, const Ogre::ColourValue& diffuse = Ogre::ColourValue(1.0, 1.0, 1.0), const Ogre::ColourValue& specular = Ogre::ColourValue(1.0, 1.0, 1.0)); |
---|
17 | |
---|
18 | inline Ogre::Light* getLight() |
---|
19 | { return this->light_; } |
---|
20 | |
---|
21 | inline const std::string& getName() const |
---|
22 | { return this->light_->getName(); } |
---|
23 | |
---|
24 | private: |
---|
25 | static unsigned int lightCounter_s; |
---|
26 | Ogre::Light* light_; |
---|
27 | }; |
---|
28 | } |
---|
29 | |
---|
30 | #endif /* _Light_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.