Rev | Line | |
---|
[633] | 1 | #include <string> |
---|
| 2 | |
---|
| 3 | #include "OgreLight.h" |
---|
| 4 | #include "OgreColourValue.h" |
---|
| 5 | |
---|
| 6 | #ifndef _Light_H__ |
---|
| 7 | #define _Light_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 |
---|
Note: See
TracBrowser
for help on using the repository browser.