24 #ifndef _SkyX_MoonManager_H_
25 #define _SkyX_MoonManager_H_
56 void updateMoonPhase(
const Ogre::Real& phase);
61 void updateGeometry(Ogre::Camera* c);
66 inline Ogre::BillboardSet* getMoonBillboard()
68 return mMoonBillboard;
74 inline Ogre::SceneNode* getMoonSceneNode()
76 return mMoonSceneNode;
82 inline void setMoonSize(
const Ogre::Real& MoonSize)
90 inline const Ogre::Real& getMoonSize()
const
98 inline void setMoonHaloIntensity(
const Ogre::Real& MoonHaloIntensity)
100 mMoonHaloIntensity = MoonHaloIntensity;
106 inline const Ogre::Real& getMoonHaloIntensity()
const
108 return mMoonHaloIntensity;
114 inline void setMoonHaloStrength(
const Ogre::Real& MoonHaloStrength)
116 mMoonHaloStrength = MoonHaloStrength;
122 inline const Ogre::Real& getMoonHaloStrength()
const
124 return mMoonHaloStrength;
138 this->mMoonSceneNode->setVisible(_visible);
143 bool visible = _enabled ?
mVisible :
false;
144 this->mMoonSceneNode->setVisible(visible);
151 void _updateMoonBounds(Ogre::Camera* c);
157 Ogre::BillboardSet* mMoonBillboard;
159 Ogre::SceneNode* mMoonSceneNode;
165 Ogre::Real mMoonSize;
167 Ogre::Real mMoonHaloIntensity;
169 Ogre::Real mMoonHaloStrength;
172 Ogre::MaterialPtr mMoonMaterial;
void create()
Create SkyX.
SkyX(Ogre::SceneManager *sm, Controller *c)
Contructor.
void setEnabled(bool _enabled)
Definition: SkyX.h:355
bool mCreated
Is SkyX created?
Definition: SkyX.h:422
void setVisible(const bool &visible)
Set visible.
#define DllExport
Include external headers.
Definition: Prerequisites.h:45
bool mVisible
Is SkyX visible?
Definition: SkyX.h:432
bool isCreated() const
Is SkyX created?
Definition: SkyX.h:147