caelum::SphereSun Class Reference

#include <Sun.h>

Inheritance diagram for caelum::SphereSun:

caelum::BaseSkyLight caelum::CameraBoundElement

List of all members.

Public Member Functions

 SphereSun (Ogre::SceneManager *sceneMgr, Ogre::SceneNode *caelumRootNode, const Ogre::String &meshName="sphere.mesh")
virtual ~SphereSun ()
void setBodyColour (const Ogre::ColourValue &colour)
virtual void notifyCameraChanged (Ogre::Camera *cam)
 Handle camera change.

Static Public Attributes

static const Ogre::String SUN_MATERIAL_NAME = "CaelumSphereSun"
 Name of the sun material.


Detailed Description

Class representing the sun as sphere with emissive color on it.
Author:
Jes˙s Alonso Abad

Definition at line 40 of file Sun.h.


Constructor & Destructor Documentation

caelum::SphereSun::SphereSun ( Ogre::SceneManager *  sceneMgr,
Ogre::SceneNode *  caelumRootNode,
const Ogre::String &  meshName = "sphere.mesh" 
)

Constructor.

Parameters:
sceneMgr The scene manager where the lights will be created.

Definition at line 33 of file Sun.cpp.

References caelum::BaseSkyLight::mNode, and SUN_MATERIAL_NAME.

caelum::SphereSun::~SphereSun (  )  [virtual]

Destructor.

Note:
If a sun position model is in use, it will be deleted.

Definition at line 44 of file Sun.cpp.

References caelum::BaseSkyLight::mNode.


Member Function Documentation

void caelum::SphereSun::setBodyColour ( const Ogre::ColourValue &  colour  )  [virtual]

Sets the sun sphere colour.

Parameters:
colour The colour used to draw the sun

Reimplemented from caelum::BaseSkyLight.

Definition at line 55 of file Sun.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