Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/hud/src/orxonox/tools/Light.h @ 1244

Last change on this file since 1244 was 790, checked in by nicolasc, 17 years ago

merged FICN back into trunk
awaiting release.

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 "util/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.