caelum::Moon Class Reference

#include <Moon.h>

Inheritance diagram for caelum::Moon:

caelum::BaseSkyLight caelum::CameraBoundElement

List of all members.

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.


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 33 of file Moon.h.


Constructor & Destructor Documentation

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().


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 105 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 115 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 98 of file Moon.cpp.

References caelum::BaseSkyLight::setBodyColour().


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

Generated on Fri Jul 11 09:24:53 2008 for Caelum by  doxygen 1.5.6