Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 637 was 633, checked in by landauf, 17 years ago

added blinkies :D

File size: 770 bytes
RevLine 
[633]1#include <string>
2
3#include "OgreLight.h"
4#include "OgreColourValue.h"
5
6#ifndef _Light_H__
7#define _Light_H__
8
9namespace 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.