Caelum::Moon Class Reference

Class representing the moon. More...

#include <Moon.h>

Inheritance diagram for Caelum::Moon:

Caelum::BaseSkyLight Caelum::CameraBoundElement

List of all members.

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.


Detailed Description

Class representing the moon.

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.


Member Function Documentation

void Caelum::Moon::setMoonTexture ( const Ogre::String &  textureName  ) 

Updates the moon material.

Parameters:
textureName The new moon texture name.

Definition at line 83 of file Moon.cpp.

Referenced by Moon().

void Caelum::Moon::setMoonTextureAngularSize ( const Ogre::Degree &  moonTextureAngularSize  ) 

Updates the moon size.

Parameters:
moon TextureAngularSize The new moon texture angular size.

Definition at line 93 of file Moon.cpp.

void Caelum::Moon::setBodyColour ( const Ogre::ColourValue &  colour  )  [virtual]

Sets the moon sphere colour.

Parameters:
colour The colour used to draw the moon

Reimplemented from Caelum::BaseSkyLight.

Definition at line 76 of file Moon.cpp.


The documentation for this class was generated from the following files:

Generated on Sun Aug 9 10:24:22 2009 for Caelum by  doxygen 1.5.9