#include <Moon.h>
Classes | |
struct | Params |
Public Member Functions | |
Moon (Ogre::SceneManager *sceneMgr, Ogre::SceneNode *caelumRootNode, const Ogre::String &moonTextureName="moon_disc.dds", Ogre::Degree angularSize=Ogre::Degree(3.77f)) | |
Constructor. | |
void | setMoonTexture (const Ogre::String &textureName) |
Updates the moon material. | |
void | setMoonTextureAngularSize (const Ogre::Degree &moonTextureAngularSize) |
Updates the moon size. | |
void | setBodyColour (const Ogre::ColourValue &colour) |
Sets the moon sphere colour. | |
void | setPhase (Ogre::Real phase) |
Set the moon's phase. | |
virtual void | notifyCameraChanged (Ogre::Camera *cam) |
Handle camera change. | |
virtual void | setQueryFlags (uint flags) |
virtual uint | getQueryFlags () const |
virtual void | setVisibilityFlags (uint flags) |
virtual uint | getVisibilityFlags () const |
Static Public Attributes | |
static const Ogre::String | MOON_MATERIAL_NAME = "Caelum/PhaseMoon" |
Name of the moon material. | |
static const Ogre::String | MOON_BACKGROUND_MATERIAL_NAME = "Caelum/MoonBackground" |
Name of the moon background material. |
Drawn as two billboards; one after the stars and one after the skydome. Drawing it before the skydome will make it invisible in daylight; and that's bad.
Definition at line 35 of file Moon.h.
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.