21 #ifndef CAELUM__IMAGE_STARFIELD_H 22 #define CAELUM__IMAGE_STARFIELD_H 25 #include "CameraBoundElement.h" 26 #include "PrivatePtr.h" 57 static const String DEFAULT_TEXTURE_NAME;
63 Ogre::SceneManager *sceneMgr,
64 Ogre::SceneNode *caelumRootNode,
65 const Ogre::String &textureName = DEFAULT_TEXTURE_NAME);
74 void setInclination (Ogre::Degree inc);
79 void update (
const float time);
84 void setTexture (
const Ogre::String &mapName);
88 virtual void notifyCameraChanged (Ogre::Camera *cam);
92 virtual void setFarRadius (Ogre::Real radius);
95 void setQueryFlags (uint flags) { mEntity->setQueryFlags (flags); }
96 uint getQueryFlags ()
const {
return mEntity->getQueryFlags (); }
97 void setVisibilityFlags (uint flags) { mEntity->setVisibilityFlags (flags); }
98 uint getVisibilityFlags ()
const {
return mEntity->getVisibilityFlags (); }
102 #endif // CAELUM__IMAGE_STARFIELD_H Image-based starfield class.
PrivateSceneNodePtr mNode
Reference to the dome node.
static const Ogre::String STARFIELD_MATERIAL_NAME
Name of the starfield material.
PrivateEntityPtr mEntity
Reference to the dome entity.
static const Ogre::String STARFIELD_DOME_NAME
Name of the spheric dome resource.
Ogre::Degree mInclination
Inclination of the starfield.
PrivateMaterialPtr mStarfieldMaterial
Reference to the (cloned) starfield material.