SkyX class Create simple and beautiful skies!
More...
#include <SkyX.h>
|
enum | LightingMode { LM_LDR = 0,
LM_HDR = 1
} |
| Lighting mode enumeration SkyX is designed for true HDR rendering, but there is a big number of applications which don't use HDR rendering, due to this fact a little exponential tone-mapping algoritm is applied to SkyX materials if LM_LDR is selected. More...
|
|
SkyX class Create simple and beautiful skies!
Definition at line 61 of file SkyX.h.
◆ LightingMode
Lighting mode enumeration SkyX is designed for true HDR rendering, but there is a big number of applications which don't use HDR rendering, due to this fact a little exponential tone-mapping algoritm is applied to SkyX materials if LM_LDR is selected.
(See: AtmosphereManager::Options::Exposure) Select LM_HDR if your app is designed for true HDR rendering. In HDR mode, we assume you're ussing a full linear rendering pipeline, so all textures are gamma corrected if needed.
Enumerator |
---|
LM_LDR | Low dynamic range.
|
LM_HDR | High dynamic range.
|
Definition at line 96 of file SkyX.h.
◆ SkyX()
SkyX::SkyX::SkyX |
( |
Ogre::SceneManager * |
sm, |
|
|
Controller * |
c |
|
) |
| |
Contructor.
- Parameters
-
Definition at line 30 of file SkyX.cpp.
◆ ~SkyX()
Destructor.
Definition at line 56 of file SkyX.cpp.
◆ _getTimeOffset()
const Ogre::Real& SkyX::SkyX::_getTimeOffset |
( |
| ) |
const |
|
inline |
Get time offset.
- Returns
- Time offset
Definition at line 342 of file SkyX.h.
◆ create()
void SkyX::SkyX::create |
( |
| ) |
|
◆ frameStarted()
bool SkyX::SkyX::frameStarted |
( |
const Ogre::FrameEvent & |
evt | ) |
|
Frame started.
- Parameters
-
Definition at line 264 of file SkyX.cpp.
◆ getAtmosphereManager()
Get atmosphere manager.
- Returns
- Atmosphere manager pointer
Definition at line 191 of file SkyX.h.
◆ getCamera()
Ogre::Camera* SkyX::SkyX::getCamera |
( |
| ) |
|
|
inline |
Get current rendering camera.
- Returns
- Current rendering camera
Definition at line 323 of file SkyX.h.
◆ getCfgFileManager()
◆ getCloudsManager()
Get clouds manager.
- Returns
- Clouds manager
Definition at line 215 of file SkyX.h.
◆ getController()
Get current controller.
- Returns
- Current controller
Definition at line 244 of file SkyX.h.
◆ getGPUManager()
Get GPU manager.
- Returns
- Atmosphere manager pointer
Definition at line 199 of file SkyX.h.
◆ getInfiniteCameraFarClipDistance()
const Ogre::Real& SkyX::SkyX::getInfiniteCameraFarClipDistance |
( |
| ) |
const |
|
inline |
Get infinite cmaera far clip distance.
- Returns
- Infinite camera far clip distance
Definition at line 307 of file SkyX.h.
◆ getLightingMode()
Get lighting mode.
- Returns
- Lighting mode
Definition at line 275 of file SkyX.h.
◆ getMeshManager()
Get mesh manager.
- Returns
- Mesh manager pointer
Definition at line 183 of file SkyX.h.
◆ getMoonManager()
Get moon manager.
- Returns
- Moon manager
Definition at line 207 of file SkyX.h.
◆ getRenderQueueGroups()
Get render queue groups.
- Returns
- Current render queue groups
Definition at line 257 of file SkyX.h.
◆ getSceneManager()
Ogre::SceneManager* SkyX::SkyX::getSceneManager |
( |
| ) |
|
|
inline |
Get scene manager.
- Returns
- Ogre scene manager
Definition at line 315 of file SkyX.h.
◆ getTimeMultiplier()
const Ogre::Real& SkyX::SkyX::getTimeMultiplier |
( |
| ) |
const |
|
inline |
Get time multiplier.
- Returns
- Time multiplier
Definition at line 175 of file SkyX.h.
◆ getVCloudsManager()
Get volumetric clouds manager.
- Returns
- Volumetric clouds manager
Definition at line 223 of file SkyX.h.
◆ isCreated()
const bool SkyX::SkyX::isCreated |
( |
| ) |
const |
|
inline |
Is SkyX created?
- Returns
- true if yes, false if not
Definition at line 143 of file SkyX.h.
◆ isStarfieldEnabled()
const bool& SkyX::SkyX::isStarfieldEnabled |
( |
| ) |
const |
|
inline |
Is the starfield enable?
- Returns
- true if the starfield is enabled, false if it isn't
Definition at line 288 of file SkyX.h.
◆ isVisible()
const bool& SkyX::SkyX::isVisible |
( |
| ) |
const |
|
inline |
Is SkyX visible?
- Returns
- true if SkyX is visible, false otherwise
Definition at line 156 of file SkyX.h.
◆ loadCfg()
const bool SkyX::SkyX::loadCfg |
( |
const Ogre::String & |
File | ) |
const |
|
inline |
◆ notifyCameraRender()
void SkyX::SkyX::notifyCameraRender |
( |
Ogre::Camera * |
c | ) |
|
Notify camera render (to be invoked per camera and per frame)
- Parameters
-
Definition at line 154 of file SkyX.cpp.
◆ preViewportUpdate()
void SkyX::SkyX::preViewportUpdate |
( |
const Ogre::RenderTargetViewportEvent & |
evt | ) |
|
Fired before update a render target viewport.
- Parameters
-
evt | Render target viewport event |
Definition at line 270 of file SkyX.cpp.
◆ remove()
void SkyX::SkyX::remove |
( |
| ) |
|
◆ setController()
Set controller.
- Parameters
-
Definition at line 231 of file SkyX.h.
◆ setInfiniteCameraFarClipDistance()
void SkyX::SkyX::setInfiniteCameraFarClipDistance |
( |
const Ogre::Real & |
d | ) |
|
|
inline |
Set infinite camera far clip distance.
- Parameters
-
d | Infinite camera far clip distance |
Definition at line 299 of file SkyX.h.
◆ setLightingMode()
Set lighting mode.
- Parameters
-
Definition at line 216 of file SkyX.cpp.
◆ setRenderQueueGroups()
Set render queue groups.
- Parameters
-
Definition at line 200 of file SkyX.cpp.
◆ setStarfieldEnabled()
void SkyX::SkyX::setStarfieldEnabled |
( |
const bool & |
Enabled | ) |
|
Set the starfield enabled/disabled.
- Parameters
-
Enabled | true for starfield, false for not |
Definition at line 238 of file SkyX.cpp.
◆ setTimeMultiplier()
void SkyX::SkyX::setTimeMultiplier |
( |
const Ogre::Real & |
TimeMultiplier | ) |
|
|
inline |
Set time multiplier.
- Parameters
-
TimeMultiplier | Time multiplier |
Definition at line 166 of file SkyX.h.
◆ setVisible()
void SkyX::SkyX::setVisible |
( |
const bool & |
visible | ) |
|
Set visible.
- Parameters
-
visible | true to set SkyX visible, false to hide it |
Definition at line 182 of file SkyX.cpp.
◆ update()
void SkyX::SkyX::update |
( |
const Ogre::Real & |
timeSinceLastFrame | ) |
|
Update (to be invoked per frame)
- Parameters
-
timeSinceLastFrame | Time elapsed since last frame |
Definition at line 125 of file SkyX.cpp.
◆ mAtmosphereManager
Atmosphere manager.
Definition at line 364 of file SkyX.h.
◆ mCamera
Ogre::Camera* SkyX::SkyX::mCamera |
|
private |
Current rendering camera.
Definition at line 383 of file SkyX.h.
◆ mCfgFileManager
◆ mCloudsManager
Clouds manager.
Definition at line 370 of file SkyX.h.
◆ mController
◆ mCreated
bool SkyX::SkyX::mCreated |
|
private |
◆ mGPUManager
GPU manager.
Definition at line 366 of file SkyX.h.
◆ mInfiniteCameraFarClipDistance
Ogre::Real SkyX::SkyX::mInfiniteCameraFarClipDistance |
|
private |
Infinite camera far clip distance.
Definition at line 390 of file SkyX.h.
◆ mLastCameraFarClipDistance
Ogre::Real SkyX::SkyX::mLastCameraFarClipDistance |
|
private |
Last camera far clip distance.
Definition at line 388 of file SkyX.h.
◆ mLastCameraPosition
Ogre::Vector3 SkyX::SkyX::mLastCameraPosition |
|
private |
Last camera position.
Definition at line 386 of file SkyX.h.
◆ mLightingMode
Lighting mode.
Definition at line 396 of file SkyX.h.
◆ mMeshManager
Mesh manager.
Definition at line 362 of file SkyX.h.
◆ mMoonManager
Moon manager.
Definition at line 368 of file SkyX.h.
◆ mRenderQueueGroups
Render queue groups.
Definition at line 378 of file SkyX.h.
◆ mSceneManager
Ogre::SceneManager* SkyX::SkyX::mSceneManager |
|
private |
Scene manager.
Definition at line 381 of file SkyX.h.
◆ mStarfield
bool SkyX::SkyX::mStarfield |
|
private |
Enable starfield?
Definition at line 398 of file SkyX.h.
◆ mTimeMultiplier
Ogre::Real SkyX::SkyX::mTimeMultiplier |
|
private |
Time multiplier.
Definition at line 401 of file SkyX.h.
◆ mTimeOffset
Ogre::Real SkyX::SkyX::mTimeOffset |
|
private |
Time offset.
Definition at line 403 of file SkyX.h.
◆ mVCloudsManager
Volumetric clouds manager.
Definition at line 372 of file SkyX.h.
◆ mVisible
bool SkyX::SkyX::mVisible |
|
private |
The documentation for this class was generated from the following files: