Changeset 11128 for code/branches/ogre1.9/src/modules/objects/Planet.h
- Timestamp:
- Mar 6, 2016, 1:56:26 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ogre1.9/src/modules/objects/Planet.h
r11071 r11128 41 41 #include "tools/BillboardSet.h" 42 42 #include "tools/Mesh.h" 43 #include "worldentities/MovableEntity.h" 43 #include "tools/interfaces/Tickable.h" 44 #include "graphics/Model.h" 44 45 45 46 namespace orxonox 46 47 { 47 class _ObjectsExport Planet : public Mo vableEntity48 class _ObjectsExport Planet : public Model, public Tickable 48 49 { 49 50 public: … … 58 59 virtual void changedVisibility() override; 59 60 60 inline void setMeshSource(const std::string& meshname)61 { this->meshSrc_ = meshname; this->changedMesh(); }62 63 inline const std::string& getMeshSource() const64 { return this->meshSrc_; }65 66 inline void setCastShadows(bool bCastShadows)67 { this->bCastShadows_ = bCastShadows; this->changedShadows(); }68 69 inline bool getCastShadows() const70 { return this->bCastShadows_; }71 72 inline const std::string& getMesh() const{73 return this->meshSrc_;74 }75 76 61 inline void setAtmosphereSize(float size){ 77 62 this->atmosphereSize = size; … … 84 69 inline void setAtmosphere(const std::string& atmosphere){ 85 70 this->atmosphere_ = atmosphere; 71 this->changedAtmosphere(); 86 72 } 87 73 … … 103 89 void registerVariables(); 104 90 105 void changedMesh(); 106 void changedShadows(); 91 void changedAtmosphere(); 107 92 108 std::string meshSrc_;109 93 std::string atmosphere_; 110 Mesh mesh_;111 94 float atmosphereSize; 112 95 float imageSize; 113 96 BillboardSet billboard_; 114 bool bCastShadows_;115 97 116 98 };
Note: See TracChangeset
for help on using the changeset viewer.