24 #ifndef _SkyX_MeshManager_H_
25 #define _SkyX_MeshManager_H_
71 void updateGeometry(Ogre::Camera* cam);
76 inline Ogre::MeshPtr getMesh()
84 inline Ogre::SubMesh* getSubMesh()
92 inline Ogre::Entity* getEntity()
100 inline const Ogre::String& getMaterialName()
const
102 return mMaterialName;
108 void setMaterialName(
const Ogre::String &MaterialName);
113 inline Ogre::HardwareVertexBufferSharedPtr &getHardwareVertexBuffer()
115 return mVertexBuffer;
121 inline Ogre::HardwareIndexBufferSharedPtr &getHardwareIndexBuffer()
129 inline Ogre::SceneNode* getSceneNode()
146 void setGeometryParameters(
const int& Steps,
const int& Circles);
151 inline const int& getSteps()
const
159 inline const int& getCircles()
const
180 void setUnderHorizonParams(
const int& UnderHorizonCircles = 15,
181 const bool& UnderHorizonFading =
true,
182 const Ogre::Real& UnderHorizonFadingExponent = 1,
183 const Ogre::Real& UnderHorizonFadingMultiplier = 2);
188 inline const int& getUnderHorizonCircles()
const
190 return mUnderHorizonCircles;
196 inline const bool& getUnderHorizonFading()
const
198 return mUnderHorizonFading;
204 inline const Ogre::Real& getUnderHorizonFadingExponent()
const
206 return mUnderHorizonFadingExponent;
212 inline const Ogre::Real& getUnderHorizonFadingMultiplier()
const
214 return mUnderHorizonFadingMultiplier;
222 inline void setRadiusMultiplier(
const Ogre::Real& RadiusMultiplier)
224 mRadiusMultiplier = RadiusMultiplier;
231 float getSkydomeRadius(Ogre::Camera* c)
const;
236 void _createGeometry();
248 Ogre::SubMesh *mSubMesh;
250 Ogre::Entity *mEntity;
253 Ogre::HardwareVertexBufferSharedPtr mVertexBuffer;
259 Ogre::HardwareIndexBufferSharedPtr mIndexBuffer;
262 Ogre::SceneNode* mSceneNode;
270 int mUnderHorizonCircles;
272 bool mUnderHorizonFading;
274 Ogre::Real mUnderHorizonFadingExponent;
277 Ogre::Real mUnderHorizonFadingMultiplier;
280 Ogre::Real mRadiusMultiplier;
283 Ogre::String mMaterialName;
void create()
Create SkyX.
SkyX(Ogre::SceneManager *sm, Controller *c)
Contructor.
bool mCreated
Is SkyX created?
Definition: SkyX.h:422
#define DllExport
Include external headers.
Definition: Prerequisites.h:45
bool isCreated() const
Is SkyX created?
Definition: SkyX.h:147