Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
castor3d::BackgroundPassBase Class Referenceabstract

#include <BackgroundPassBase.hpp>

Collaboration diagram for castor3d::BackgroundPassBase:
Collaboration graph
[legend]

Public Member Functions

C3D_API BackgroundPassBase (crg::FramePass const &pass, RenderDevice const &device, SceneBackground &background, bool forceVisible)
 Constructor.
 
virtual C3D_API ~BackgroundPassBase () noexcept=default
 
C3D_API void update (CpuUpdater &updater)
 Updates the render pass, CPU wise.
 
C3D_API void update (GpuUpdater &updater)
 Updates the render pass, GPU wise.
 

Protected Member Functions

C3D_API bool doIsEnabled () const
 

Protected Attributes

RenderDevice const & m_device
 
SceneBackground const * m_background
 
Viewport m_viewport
 
OnBackgroundChangedConnection m_onBackgroundChanged
 

Constructor & Destructor Documentation

◆ BackgroundPassBase()

C3D_API castor3d::BackgroundPassBase::BackgroundPassBase ( crg::FramePass const & pass,
RenderDevice const & device,
SceneBackground & background,
bool forceVisible )

Constructor.

Parameters
[in]passThe parent frame pass.
[in]deviceThe GPU device.
[in]backgroundThe scene background.
[in]forceVisibletrue to force display of background.

◆ ~BackgroundPassBase()

virtual C3D_API castor3d::BackgroundPassBase::~BackgroundPassBase ( )
virtualdefaultnoexcept

Member Function Documentation

◆ doIsEnabled()

C3D_API bool castor3d::BackgroundPassBase::doIsEnabled ( ) const
protected

◆ update() [1/2]

C3D_API void castor3d::BackgroundPassBase::update ( CpuUpdater & updater)

Updates the render pass, CPU wise.

Parameters
[in,out]updaterThe update data.

◆ update() [2/2]

C3D_API void castor3d::BackgroundPassBase::update ( GpuUpdater & updater)

Updates the render pass, GPU wise.

Parameters
[in,out]updaterThe update data.

Member Data Documentation

◆ m_background

SceneBackground const* castor3d::BackgroundPassBase::m_background
protected

◆ m_device

RenderDevice const& castor3d::BackgroundPassBase::m_device
protected

◆ m_onBackgroundChanged

OnBackgroundChangedConnection castor3d::BackgroundPassBase::m_onBackgroundChanged
protected

◆ m_viewport

Viewport castor3d::BackgroundPassBase::m_viewport
protected

The documentation for this class was generated from the following file: