|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
24 #ifndef _SkyX_MeshManager_H_
25 #define _SkyX_MeshManager_H_
175 void setUnderHorizonParams(
const int& UnderHorizonCircles = 15,
const bool& UnderHorizonFading =
true,
const Ogre::Real& UnderHorizonFadingExponent = 1,
const Ogre::Real& UnderHorizonFadingMultiplier = 2);
void setMaterialName(const Ogre::String &MaterialName)
Set mesh material.
void _createGeometry()
Create geometry.
void setGeometryParameters(const int &Steps, const int &Circles)
Set geometry parameters.
MeshManager(SkyX *s)
Constructor.
Ogre::Entity * getEntity()
Get entity.
int mUnderHorizonCircles
Under-horizon rendering.
const int & getCircles() const
Get number of circles.
Ogre::Entity * mEntity
Ogre::Entity pointer.
Ogre::HardwareIndexBufferSharedPtr & getHardwareIndexBuffer()
Get hardware index buffer reference.
Ogre::String mMaterialName
Material name.
VERTEX * mVertices
Vertices.
Ogre::SubMesh * getSubMesh()
Get sub mesh.
const float getSkydomeRadius(Ogre::Camera *c) const
Get skydome radius.
Ogre::Real mRadiusMultiplier
Radius multiplier.
bool mUnderHorizonFading
Under-horizon fading.
~MeshManager()
Destructor.
Ogre::Real mUnderHorizonFadingExponent
Under-horizon exponent fading (1=linear fading)
const bool & isCreated() const
Is _createGeometry() called?
void updateGeometry(Ogre::Camera *cam)
Update geometry.
Ogre::SubMesh * mSubMesh
Ogre::Submesh pointer.
const int & getSteps() const
Get number of steps.
void remove()
Remove all resources.
void setUnderHorizonParams(const int &UnderHorizonCircles=15, const bool &UnderHorizonFading=true, const Ogre::Real &UnderHorizonFadingExponent=1, const Ogre::Real &UnderHorizonFadingMultiplier=2)
Set under-horizon rendering params.
Ogre::Real mUnderHorizonFadingMultiplier
Under-horizon fading multiplier: opacity = saturate(pow(opacity,fading_exp)*fading_multiplier)
const Ogre::String & getMaterialName() const
Get material name.
Ogre::SceneNode * mSceneNode
Ogre::SceneNode pointer.
const Ogre::Real & getUnderHorizonFadingMultiplier() const
Get under-horizon fading multiplier.
const Ogre::Real & getUnderHorizonFadingExponent() const
Get under-horizon exponent fading.
Ogre::SceneNode * getSceneNode()
Get the Ogre::SceneNode pointer where Hydrax mesh is attached.
Ogre::HardwareVertexBufferSharedPtr & getHardwareVertexBuffer()
Get hardware vertex buffer reference.
Ogre::MeshPtr getMesh()
Get mesh.
Ogre::HardwareVertexBufferSharedPtr mVertexBuffer
Vertex buffer.
bool mCreated
Has been create() already called?
SkyX * mSkyX
Main SkyX pointer.
void setRadiusMultiplier(const Ogre::Real &RadiusMultiplier)
Set radius multiplier.
void create()
Create our water mesh, geometry, entity, etc...
Ogre::MeshPtr mMesh
Ogre::MeshPtr.
const int & getUnderHorizonCircles() const
Get under-horizon circles.
const bool & getUnderHorizonFading() const
Get under-horizon fading.
Ogre::HardwareIndexBufferSharedPtr mIndexBuffer
Index buffer.