#include <Moon.h>

Public Member Functions | |
| Moon (Ogre::SceneManager *sceneMgr, Ogre::SceneNode *caelumRootNode, const Ogre::String &moonTextureName="moon_disc.dds", Ogre::Degree angularSize=Ogre::Degree(3.77f)) | |
| void | setMoonTexture (const Ogre::String &textureName) |
| void | setMoonTextureAngularSize (const Ogre::Degree &moonTextureAngularSize) |
| void | setBodyColour (const Ogre::ColourValue &colour) |
| void | setPhase (Ogre::Real phase) |
| Set the moon's phase. | |
| virtual void | notifyCameraChanged (Ogre::Camera *cam) |
| Handle camera change. | |
Static Public Attributes | |
| static const Ogre::String | MOON_MATERIAL_NAME = "Caelum/PhaseMoon" |
| Name of the moon material. | |
| static const Ogre::String | MOON_BACKROUND_MATERIAL_NAME = "Caelum/MoonBackground" |
| Name of the moon background material. | |
Definition at line 33 of file Moon.h.
| caelum::Moon::Moon | ( | Ogre::SceneManager * | sceneMgr, | |
| Ogre::SceneNode * | caelumRootNode, | |||
| const Ogre::String & | moonTextureName = "moon_disc.dds", |
|||
| Ogre::Degree | angularSize = Ogre::Degree(3.77f) | |||
| ) |
Constructor.
Definition at line 31 of file Moon.cpp.
References caelum::BaseSkyLight::mNode, MOON_BACKROUND_MATERIAL_NAME, MOON_MATERIAL_NAME, and setMoonTexture().
| void caelum::Moon::setMoonTexture | ( | const Ogre::String & | textureName | ) |
| void caelum::Moon::setMoonTextureAngularSize | ( | const Ogre::Degree & | moonTextureAngularSize | ) |
| void caelum::Moon::setBodyColour | ( | const Ogre::ColourValue & | colour | ) | [virtual] |
Sets the moon sphere colour.
| colour | The colour used to draw the moon |
Reimplemented from caelum::BaseSkyLight.
Definition at line 98 of file Moon.cpp.
References caelum::BaseSkyLight::setBodyColour().
1.5.6