Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 708 was 708, checked in by rgrieder, 16 years ago
  • added Vector2, Vector3, Matrix3, ColourValue, Quaternion and String to the misc folder as header files (each of them contains #include <string> … typedef std::string String , etc.)
  • please use String from now on by including <misc/String.h"
  • removed #include <OgreVector3.h", etc. from "CoreIncludes.h" (adjusted all source files)
  • adjusted all the source files (except network, that keeps <string> for the moment) (what a mess..)
  • moved usleep hack to misc/Sleep.h
  • relative include paths for files from other root directories (like misc, network, etc.) (but it stills writes "../Orxonox.h" when in folder orxonox/objects)
  • "OgreSceneManager.h" —> <OgreSceneManager.h>
  • included OrxonoxPrereqs in every file in folder orxonox
  • moved HUD and ParticleInterface to namespace orxonox
  • removed some using namespace Ogre/std when appropriate
  • I hope I haven't forgotten important points..
File size: 800 bytes
Line 
1#ifndef _Light_H__
2#define _Light_H__
3
4#include <OgreLight.h>
5
6#include "../OrxonoxPrereqs.h"
7
8#include "misc/String.h"
9#include "misc/ColourValue.h"
10
11namespace orxonox
12{
13    class Light
14    {
15        public:
16            Light();
17            ~Light();
18            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));
19
20            inline Ogre::Light* getLight()
21                { return this->light_; }
22
23            inline const String& getName() const
24                { return this->light_->getName(); }
25
26        private:
27            static unsigned int lightCounter_s;
28            Ogre::Light* light_;
29    };
30}
31
32#endif /* _Light_H__ */
Note: See TracBrowser for help on using the repository browser.