Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FICN/src/orxonox/objects/Light.h @ 729

Last change on this file since 729 was 729, checked in by rgrieder, 16 years ago
  • fixed multiple template instantiation problem under windows
  • removed some warnings by introducing explicit casts
File size: 808 bytes
Line 
1#ifndef _Light_H__
2#define _Light_H__
3
4#include <string>
5
6#include <OgreLight.h>
7
8#include "../OrxonoxPrereqs.h"
9
10#include "misc/Math.h"
11
12namespace orxonox
13{
14    class _OrxonoxExport Light
15    {
16        public:
17            Light();
18            ~Light();
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));
20
21            inline Ogre::Light* getLight()
22                { return this->light_; }
23
24            inline const std::string& getName() const
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.