#include <Background.hpp>
◆ DescriptorIdx
| Enumerator |
|---|
| MtxUboIdx | |
| MdlMtxUboIdx | |
| HdrCfgUboIdx | |
| SceneUboIdx | |
| SkyBoxImgIdx | |
◆ SceneBackground()
Constructor.
- Parameters
-
| engine | The engine. |
| scene | The parent scene. |
| name | The background name. |
| type | The background type. |
◆ ~SceneBackground()
| virtual C3D_API castor3d::SceneBackground::~SceneBackground |
( |
| ) |
|
|
virtual |
◆ accept()
◆ cleanup()
Cleanup function.
- Parameters
-
| [in] | device | The current device. |
◆ getIbl()
| IblTextures const & castor3d::SceneBackground::getIbl |
( |
| ) |
const |
|
inline |
◆ getImage()
| ashes::Image const & castor3d::SceneBackground::getImage |
( |
| ) |
const |
|
inline |
◆ getSampler()
| Sampler const & castor3d::SceneBackground::getSampler |
( |
| ) |
const |
|
inline |
◆ getScene() [1/2]
| Scene & castor3d::SceneBackground::getScene |
( |
| ) |
|
|
inline |
◆ getScene() [2/2]
| Scene const & castor3d::SceneBackground::getScene |
( |
| ) |
const |
|
inline |
◆ getTexture() [1/2]
◆ getTexture() [2/2]
| TextureLayout const & castor3d::SceneBackground::getTexture |
( |
| ) |
const |
|
inline |
◆ getTextureId()
| Texture const & castor3d::SceneBackground::getTextureId |
( |
| ) |
const |
|
inline |
◆ getType()
◆ getView()
| ashes::ImageView const & castor3d::SceneBackground::getView |
( |
| ) |
const |
|
inline |
◆ hasIbl()
| bool castor3d::SceneBackground::hasIbl |
( |
| ) |
const |
|
inline |
◆ initialise()
Initialisation function.
- Parameters
-
| [in] | device | The current device. |
- Returns
true if ok.
◆ isHdr()
| bool castor3d::SceneBackground::isHdr |
( |
| ) |
const |
|
inline |
◆ isInitialised()
| bool castor3d::SceneBackground::isInitialised |
( |
| ) |
const |
|
inline |
◆ isSRGB()
| bool castor3d::SceneBackground::isSRGB |
( |
| ) |
const |
|
inline |
◆ notifyChanged()
| C3D_API void castor3d::SceneBackground::notifyChanged |
( |
| ) |
|
Notifies a change to apply on GPU for the background.
◆ update() [1/2]
Updates the background, CPU side.
- Parameters
-
| [in] | updater | The update data. |
◆ update() [2/2]
Updates the background, GPU side.
- Parameters
-
| [in] | updater | The update data. |
◆ m_hdr
| bool castor3d::SceneBackground::m_hdr { true } |
|
protected |
◆ m_ibl
| std::unique_ptr< IblTextures > castor3d::SceneBackground::m_ibl |
|
protected |
◆ m_initialised
| std::atomic_bool castor3d::SceneBackground::m_initialised { false } |
|
protected |
◆ m_sampler
◆ m_scene
| Scene& castor3d::SceneBackground::m_scene |
|
protected |
◆ m_srgb
| bool castor3d::SceneBackground::m_srgb { false } |
|
protected |
◆ m_texture
| TextureLayoutSPtr castor3d::SceneBackground::m_texture |
|
protected |
◆ m_textureId
| Texture castor3d::SceneBackground::m_textureId |
|
protected |
◆ m_type
◆ onChanged
The documentation for this class was generated from the following file: