Castor3D 0.16.0
Multiplatform 3D engine
|
#include <PostEffect.hpp>
Public Types | |
enum class | Kind { eHDR , eSRGB , eOverlay } |
Public Member Functions | |
virtual C3D_API | ~PostEffect () noexcept=default |
Destructor. | |
C3D_API bool | writeInto (castor::StringStream &file, castor::String const &tabs) |
Writes the effect into a text file. | |
C3D_API bool | initialise (castor3d::RenderDevice const &device, Texture const &source, Texture const &target, crg::FramePass const &previousPass) |
Initialisation function. | |
C3D_API void | cleanup (castor3d::RenderDevice const &device) |
Cleanup function. | |
C3D_API bool | update (CpuUpdater &updater, Texture const &source) |
C3D_API void | update (GpuUpdater &updater) |
virtual C3D_API void | accept (ConfigurationVisitorBase &visitor)=0 |
Visitor acceptance function. | |
void | enable (bool value) noexcept |
virtual C3D_API crg::FramePass const & | getPass () const =0 |
virtual C3D_API void | setParameters (Parameters parameters)=0 |
bool | isAfterToneMapping () const noexcept |
castor::String const & | getFullName () const noexcept |
bool const & | isEnabled () const noexcept |
Public Member Functions inherited from castor::OwnedBy< RenderSystem > | |
RenderSystem * | getOwner () const |
Public Member Functions inherited from castor::NamedBaseT< T > | |
NamedBaseT (T name) noexcept | |
Constructor. | |
T const & | getName () const noexcept |
Retrieves the name. | |
void | rename (T name) noexcept |
Protected Member Functions | |
C3D_API | PostEffect (castor::String const &name, castor::String const &groupName, castor::String const &fullName, RenderTarget &renderTarget, RenderSystem &renderSystem, Parameters const ¶meters, uint32_t passesCount=1u, Kind kind=Kind::eHDR) |
Constructor. | |
Protected Member Functions inherited from castor::OwnedBy< RenderSystem > | |
OwnedBy (RenderSystem &owner) | |
Constructor. | |
Protected Attributes | |
castor::String | m_fullName |
RenderTarget & | m_renderTarget |
crg::FramePassGroup & | m_graph |
uint32_t | m_passesCount { 1u } |
Kind | m_kind { Kind::eHDR } |
bool | m_enabled { true } |
uint32_t | m_passIndex {} |
Texture const * | m_source {} |
Protected Attributes inherited from castor::NamedBaseT< T > | |
T | m_name |
|
strong |
|
protected |
Constructor.
[in] | name | The effect name. |
[in] | groupName | The effect passes group name. |
[in] | fullName | The effect full (fancy) name. |
[in] | renderTarget | The render target to which is attached this effect. |
[in] | renderSystem | The render system. |
[in] | parameters | The optional parameters. |
[in] | passesCount | The number of passes for this post effect. |
[in] | kind | The post effect kind. |
|
virtualdefaultnoexcept |
Destructor.
|
pure virtual |
Visitor acceptance function.
visitor | The ... visitor. |
C3D_API void castor3d::PostEffect::cleanup | ( | castor3d::RenderDevice const & | device | ) |
Cleanup function.
[in] | device | The GPU device. |
|
inlinenoexcept |
name Mutators.
References m_enabled.
|
inlinenoexcept |
References m_fullName.
|
pure virtual |
name Getters.
C3D_API bool castor3d::PostEffect::initialise | ( | castor3d::RenderDevice const & | device, |
Texture const & | source, | ||
Texture const & | target, | ||
crg::FramePass const & | previousPass ) |
Initialisation function.
[in] | device | The GPU device. |
[in] | source | The source texture. |
[in] | target | The target texture. |
[in] | previousPass | The previous frame pass. |
true
if ok.
|
inlinenoexcept |
|
inlinenoexcept |
References m_enabled.
|
pure virtual |
C3D_API bool castor3d::PostEffect::update | ( | CpuUpdater & | updater, |
Texture const & | source ) |
[in,out] | updater | The update data. |
[in] | source | The current source image. |
C3D_API void castor3d::PostEffect::update | ( | GpuUpdater & | updater | ) |
[in,out] | updater | The update data. |
C3D_API bool castor3d::PostEffect::writeInto | ( | castor::StringStream & | file, |
castor::String const & | tabs ) |
Writes the effect into a text file.
[in] | file | The file. |
[in] | tabs | The current indentation. |
|
protected |
Referenced by enable(), and isEnabled().
|
protected |
Referenced by getFullName().
|
protected |
|
protected |
Referenced by isAfterToneMapping().
|
protected |
|
protected |
|
protected |
|
protected |