- Timestamp:
- May 24, 2011, 12:28:31 AM (14 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
code/branches/environment2/src/orxonox/graphics/GodrayShader.h
r8497 r8557 31 31 @file 32 32 33 @brief Header of the G lobalGodrayShader class.33 @brief Header of the GodrayShader class. 34 34 */ 35 35 36 36 37 #ifndef _G lobalGodrayShader_H__38 #define _G lobalGodrayShader_H__37 #ifndef _GodrayShader_H__ 38 #define _GodrayShader_H__ 39 39 40 40 #include "OrxonoxPrereqs.h" 41 42 #include <OgreCompositorInstance.h> 41 43 42 44 #include "tools/interfaces/Tickable.h" 43 45 #include "core/BaseObject.h" 44 46 #include "util/Math.h" 47 #include "WorldEntity.h" 45 48 #include "GlobalShader.h" 46 49 … … 52 55 53 56 */ 54 class _OrxonoxExport G lobalGodrayShader : public BaseObject, public Tickable57 class _OrxonoxExport GodrayShader : public BaseObject, public Tickable 55 58 { 56 59 public: 57 G lobalGodrayShader(BaseObject* creator);58 virtual ~G lobalGodrayShader();60 GodrayShader(BaseObject* creator); 61 virtual ~GodrayShader(); 59 62 60 63 virtual void tick(float dt); 64 65 virtual void updateParameters(); 61 66 62 67 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 63 68 64 69 virtual void changedVisibility(); 70 71 void setWorldEntity(WorldEntity* worldEntity); 65 72 66 73 inline const GlobalShader& getGlobalShader() const … … 68 75 69 76 void setSunPosition(const Vector3& position); 77 void setSunColor(const ColourValue& color); 70 78 void setSkyColor(const ColourValue& color); 71 79 const Vector3& getSunPosition() const; 80 const ColourValue& getSunColor() const; 72 81 const ColourValue& getSkyColor() const; 73 82 74 83 private: 75 84 85 WorldEntity* worldEntity_; 76 86 GlobalShader globalShader_; 77 87 Ogre::CompositorInstance* compositor_; 78 88 Vector3 sunPosition_; 89 ColourValue sunColor_; 79 90 ColourValue skyColor_; 80 91 float exposure_; … … 84 95 } 85 96 86 #endif /* _G lobalGodrayShader_H__ */97 #endif /* _GodrayShader_H__ */
Note: See TracChangeset
for help on using the changeset viewer.