Last change
on this file since 905 was
790,
checked in by nicolasc, 17 years ago
|
merged FICN back into trunk
awaiting release.
|
File size:
808 bytes
|
Rev | Line | |
---|
[676] | 1 | #ifndef _Light_H__ |
---|
| 2 | #define _Light_H__ |
---|
| 3 | |
---|
[715] | 4 | #include <string> |
---|
| 5 | |
---|
[708] | 6 | #include <OgreLight.h> |
---|
[676] | 7 | |
---|
[708] | 8 | #include "../OrxonoxPrereqs.h" |
---|
[676] | 9 | |
---|
[742] | 10 | #include "util/Math.h" |
---|
[708] | 11 | |
---|
[676] | 12 | namespace orxonox |
---|
| 13 | { |
---|
[729] | 14 | class _OrxonoxExport Light |
---|
[676] | 15 | { |
---|
| 16 | public: |
---|
| 17 | Light(); |
---|
| 18 | ~Light(); |
---|
[708] | 19 | void setLight(Ogre::Light::LightTypes type = Ogre::Light::LT_POINT, const ColourValue& diffuse = ColourValue(1.0, 1.0, 1.0), const ColourValue& specular = ColourValue(1.0, 1.0, 1.0)); |
---|
[676] | 20 | |
---|
| 21 | inline Ogre::Light* getLight() |
---|
| 22 | { return this->light_; } |
---|
| 23 | |
---|
[715] | 24 | inline const std::string& getName() const |
---|
[676] | 25 | { return this->light_->getName(); } |
---|
| 26 | |
---|
| 27 | private: |
---|
| 28 | static unsigned int lightCounter_s; |
---|
| 29 | Ogre::Light* light_; |
---|
| 30 | }; |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | #endif /* _Light_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.