![]() |
Divide Framework 0.1
A free and open-source 3D Framework under heavy development
|
#include <PostFX.h>
Public Member Functions | |
PostFX (PlatformContext &context) | |
~PostFX () override | |
void | prePass (PlayerIndex idx, const CameraSnapshot &cameraSnapshot, GFX::CommandBuffer &bufferInOut) |
void | apply (PlayerIndex idx, const CameraSnapshot &cameraSnapshot, GFX::CommandBuffer &bufferInOut) |
void | idle (const Configuration &config, U64 deltaTimeUSGame) |
void | update (U64 deltaTimeUSFixed, U64 deltaTimeUSApp) |
void | updateResolution (U16 newWidth, U16 newHeight) |
void | pushFilter (const FilterType filter, const bool overrideScene=false) |
void | popFilter (const FilterType filter, const bool overrideScene=false) |
bool | getFilterState (const FilterType filter) const noexcept |
PreRenderBatch & | getFilterBatch () noexcept |
void | setFadeOut (const UColour3 &targetColour, D64 durationMS, D64 waitDurationMS, DELEGATE< void > onComplete=DELEGATE< void >()) |
void | setFadeIn (D64 durationMS, DELEGATE< void > onComplete=DELEGATE< void >()) |
void | setFadeOutIn (const UColour3 &targetColour, D64 durationFadeOutMS, D64 waitDurationMS) |
void | setFadeOutIn (const UColour3 &targetColour, D64 durationFadeOutMS, D64 durationFadeInMS, D64 waitDurationMS) |
PROPERTY_RW (bool, isDayTime, true) | |
![]() | |
PlatformContextComponent (PlatformContext &context) noexcept | |
virtual | ~PlatformContextComponent ()=default |
PlatformContext & | context () noexcept |
const PlatformContext & | context () const noexcept |
![]() | |
NonCopyable (const NonCopyable &)=delete | |
NonCopyable & | operator= (const NonCopyable &)=delete |
NonCopyable (NonCopyable &&)=default | |
NonCopyable & | operator= (NonCopyable &&)=default |
Static Public Member Functions | |
static const char * | FilterName (FilterType filter) noexcept |
Private Types | |
enum class | FXDisplayFunction : U8 { Vignette = 0 , Noise , Underwater , Normal , PassThrough , COUNT } |
enum class | FXRoutines : U8 { Vignette = 0 , Noise , Screen , COUNT } |
Private Attributes | |
PreRenderBatch | _preRenderBatch |
Handle< Texture > | _screenBorder = INVALID_HANDLE<Texture> |
Handle< Texture > | _noise = INVALID_HANDLE<Texture> |
Handle< Texture > | _underwaterTexture = INVALID_HANDLE<Texture> |
F32 | _randomNoiseCoefficient = 0.0f |
F32 | _randomFlashCoefficient = 0.0f |
D64 | _noiseTimer = 0.0 |
D64 | _tickInterval = 1.0 |
Handle< ShaderProgram > | _postProcessingShader = INVALID_HANDLE<ShaderProgram> |
vec2< U16 > | _resolutionCache |
RTDrawDescriptor | _postFXTarget |
D64 | _currentFadeTimeMS = 0.0 |
D64 | _targetFadeTimeMS = 0.0 |
D64 | _fadeWaitDurationMS = 0.0 |
bool | _fadeOut = false |
bool | _fadeActive = false |
DELEGATE< void > | _fadeOutComplete |
DELEGATE< void > | _fadeInComplete |
U32 | _filterStack = 0u |
U32 | _overrideFilterStack = 0u |
bool | _filtersDirty = true |
Pipeline * | _drawPipeline = nullptr |
UniformData | _uniformData |
GFX::SetCameraCommand | _setCameraCmd |
Additional Inherited Members | |
![]() | |
NonCopyable ()=default | |
~NonCopyable ()=default | |
![]() | |
PlatformContext & | _context |
|
strongprivate |
|
strongprivate |
|
explicit |
Definition at line 47 of file PostFX.cpp.
|
override |
Definition at line 119 of file PostFX.cpp.
void Divide::PostFX::apply | ( | PlayerIndex | idx, |
const CameraSnapshot & | cameraSnapshot, | ||
GFX::CommandBuffer & | bufferInOut | ||
) |
Definition at line 154 of file PostFX.cpp.
|
staticnoexcept |
Definition at line 27 of file PostFX.cpp.
|
inlinenoexcept |
|
inlinenoexcept |
void Divide::PostFX::idle | ( | const Configuration & | config, |
U64 | deltaTimeUSGame | ||
) |
Definition at line 232 of file PostFX.cpp.
|
inline |
void Divide::PostFX::prePass | ( | PlayerIndex | idx, |
const CameraSnapshot & | cameraSnapshot, | ||
GFX::CommandBuffer & | bufferInOut | ||
) |
Definition at line 143 of file PostFX.cpp.
Divide::PostFX::PROPERTY_RW | ( | bool | , |
isDayTime | , | ||
true | |||
) |
|
inline |
Definition at line 312 of file PostFX.cpp.
void Divide::PostFX::setFadeOut | ( | const UColour3 & | targetColour, |
D64 | durationMS, | ||
D64 | waitDurationMS, | ||
DELEGATE< void > | onComplete = DELEGATE<void>() |
||
) |
Definition at line 298 of file PostFX.cpp.
void Divide::PostFX::setFadeOutIn | ( | const UColour3 & | targetColour, |
D64 | durationFadeOutMS, | ||
D64 | durationFadeInMS, | ||
D64 | waitDurationMS | ||
) |
Definition at line 330 of file PostFX.cpp.
void Divide::PostFX::setFadeOutIn | ( | const UColour3 & | targetColour, |
D64 | durationFadeOutMS, | ||
D64 | waitDurationMS | ||
) |
Definition at line 322 of file PostFX.cpp.
Definition at line 252 of file PostFX.cpp.
Definition at line 129 of file PostFX.cpp.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |