#include <Sun.h>
Public Member Functions | |
SphereSun (Ogre::SceneManager *sceneMgr, Ogre::SceneNode *caelumRootNode, const Ogre::String &meshName="sphere.mesh") | |
Constructor. | |
virtual | ~SphereSun () |
Destructor. | |
void | setBodyColour (const Ogre::ColourValue &colour) |
Sets the sun sphere colour. | |
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 | SUN_MATERIAL_NAME = "CaelumSphereSun" |
Name of the sun material. |
Definition at line 40 of file Sun.h.
Caelum::SphereSun::SphereSun | ( | Ogre::SceneManager * | sceneMgr, | |
Ogre::SceneNode * | caelumRootNode, | |||
const Ogre::String & | meshName = "sphere.mesh" | |||
) |
Constructor.
sceneMgr | The scene manager where the lights will be created. |
Definition at line 30 of file Sun.cpp.
References Caelum::InternalUtilities::checkLoadMaterialClone(), and Caelum::InternalUtilities::pointerToString().
Caelum::SphereSun::~SphereSun | ( | ) | [virtual] |
void Caelum::SphereSun::setBodyColour | ( | const Ogre::ColourValue & | colour | ) | [virtual] |
Sets the sun sphere colour.
colour | The colour used to draw the sun |
Reimplemented from Caelum::BaseSkyLight.