Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 715 was 715, checked in by rgrieder, 16 years ago
  • the master has spoken…
  • misc/String.h is not anymore..
File size: 800 bytes
RevLine 
[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
[708]10#include "misc/ColourValue.h"
11
[676]12namespace orxonox
13{
14    class Light
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.