#include <ImageStarfield.h>

Public Member Functions | |
| ImageStarfield (Ogre::SceneManager *sceneMgr, Ogre::SceneNode *caelumRootNode, const Ogre::String &textureName=DEFAULT_TEXTURE_NAME) | |
| Constructor. | |
| virtual | ~ImageStarfield () |
| Destructor. | |
| void | setInclination (Ogre::Degree inc) |
| Sets the starfield inclination. | |
| void | update (const float time) |
| Updates the starfield position/orientation. | |
| void | setTexture (const Ogre::String &mapName) |
| Updates the starfield material. | |
| virtual void | notifyCameraChanged (Ogre::Camera *cam) |
| Handle camera change. | |
| void | setQueryFlags (uint flags) |
| uint | getQueryFlags () const |
| void | setVisibilityFlags (uint flags) |
| uint | getVisibilityFlags () const |
Static Public Attributes | |
| static const String | DEFAULT_TEXTURE_NAME = "Starfield.jpg" |
Protected Member Functions | |
| virtual void | setFarRadius (Ogre::Real radius) |
| Handle far radius. | |
Protected Attributes | |
| PrivateSceneNodePtr | mNode |
| Reference to the dome node. | |
| PrivateMaterialPtr | mStarfieldMaterial |
| Reference to the (cloned) starfield material. | |
| PrivateEntityPtr | mEntity |
| Reference to the dome entity. | |
| Ogre::Degree | mInclination |
| Inclination of the starfield. | |
Static Protected Attributes | |
| static const Ogre::String | STARFIELD_DOME_NAME = "CaelumStarfieldDome" |
| Name of the spheric dome resource. | |
| static const Ogre::String | STARFIELD_MATERIAL_NAME = "CaelumStarfieldMaterial" |
| Name of the starfield material. | |
This class implements a starfield based on mapping a single large texture on a sphere.
Definition at line 34 of file ImageStarfield.h.
| Caelum::ImageStarfield::ImageStarfield | ( | Ogre::SceneManager * | sceneMgr, | |
| Ogre::SceneNode * | caelumRootNode, | |||
| const Ogre::String & | textureName = DEFAULT_TEXTURE_NAME | |||
| ) |
Constructor.
| sceneMgr | The scene manager this dome will belong to. |
Definition at line 32 of file ImageStarfield.cpp.
References Caelum::InternalUtilities::checkLoadMaterialClone(), Caelum::InternalUtilities::generateSphericDome(), and Caelum::InternalUtilities::pointerToString().
| void Caelum::ImageStarfield::setInclination | ( | Ogre::Degree | inc | ) |
Sets the starfield inclination.
This inclination is the angle between the starfield rotation axis and the horizon plane.
| inc | The starfield inclination in degrees. It`s equal to observer latitude taken with opposite sign. |
Definition at line 71 of file ImageStarfield.cpp.
References mInclination.
Referenced by Caelum::CaelumSystem::updateSubcomponents().
| void Caelum::ImageStarfield::update | ( | const float | time | ) |
Updates the starfield position/orientation.
| time | Local time in [0, 1] range. |
Definition at line 75 of file ImageStarfield.cpp.
References mInclination, and mNode.
Referenced by Caelum::CaelumSystem::updateSubcomponents().
| void Caelum::ImageStarfield::setTexture | ( | const Ogre::String & | mapName | ) |
Updates the starfield material.
| mapName | The new starfield texture map name. |
Definition at line 83 of file ImageStarfield.cpp.
References mStarfieldMaterial.
1.5.9