TDME2 1.9.121
|
Post processing shader SSAO rendering implementation. More...
#include <tdme/engine/subsystems/postprocessing/PostProcessingShaderSSAOImplementation.h>
Public Member Functions | |
PostProcessingShaderSSAOImplementation (Renderer *renderer) | |
Public constructor. More... | |
virtual void | initialize () override |
Initialize post processing shader. More... | |
virtual void | setShaderParameters (int contextIdx, Engine *engine) override |
Set shader parameters. More... | |
![]() | |
PostProcessingShaderBaseImplementation (Renderer *renderer) | |
Public constructor. More... | |
virtual bool | isInitialized () override |
virtual void | initialize () override |
Initialize post processing shader. More... | |
virtual void | useProgram (int contextIdx) override |
Use program. More... | |
virtual void | unUseProgram () override |
Unuse program. More... | |
virtual void | setBufferPixelWidth (int contextIdx, float pixelWidth) override |
Set source buffer pixel width. More... | |
virtual void | setBufferPixelHeight (int contextIdx, float pixelHeight) override |
Set source buffer pixel height. More... | |
virtual void | setShaderParameters (int contextIdx, Engine *engine) override=0 |
Set shader parameters. More... | |
![]() | |
virtual | ~PostProcessingShaderImplementation () |
Public destructor. More... | |
virtual bool | isInitialized ()=0 |
virtual void | initialize ()=0 |
Initialize post processing shader. More... | |
virtual void | useProgram (int contextIdx)=0 |
Use program. More... | |
virtual void | unUseProgram ()=0 |
Unuse program. More... | |
virtual void | setBufferPixelWidth (int contextIdx, float pixelWidth)=0 |
Set source buffer pixel width. More... | |
virtual void | setBufferPixelHeight (int contextIdx, float pixelHeight)=0 |
Set source buffer pixel height. More... | |
virtual void | setShaderParameters (int contextIdx, Engine *engine)=0 |
Set shader parameters. More... | |
Static Public Member Functions | |
static bool | isSupported (Renderer *renderer) |
Returns if shader is supported on given renderer. More... | |
Additional Inherited Members | |
![]() | |
int32_t | programId { -1 } |
int32_t | vertexShaderId { -1 } |
int32_t | fragmentShaderId { -1 } |
int32_t | uniformColorBufferTextureUnit { -1 } |
int32_t | uniformDepthBufferTextureUnit { -1 } |
int32_t | uniformTemporaryColorBufferTextureUnit { -1 } |
int32_t | uniformTemporaryDepthBufferTextureUnit { -1 } |
int32_t | uniformBufferTexturePixelWidth { -1 } |
int32_t | uniformBufferTexturePixelHeight { -1 } |
bool | isRunning { false } |
bool | initialized { false } |
Renderer * | renderer { nullptr } |
Post processing shader SSAO rendering implementation.
Definition at line 17 of file PostProcessingShaderSSAOImplementation.h.
PostProcessingShaderSSAOImplementation | ( | Renderer * | renderer | ) |
Public constructor.
renderer | renderer |
Definition at line 19 of file PostProcessingShaderSSAOImplementation.cpp.
|
overridevirtual |
Initialize post processing shader.
Reimplemented from PostProcessingShaderBaseImplementation.
Definition at line 23 of file PostProcessingShaderSSAOImplementation.cpp.
|
static |
Returns if shader is supported on given renderer.
renderer | renderer |
Definition at line 15 of file PostProcessingShaderSSAOImplementation.cpp.
|
overridevirtual |
Set shader parameters.
contextIdx | context index |
engine | engine |
Implements PostProcessingShaderBaseImplementation.
Definition at line 56 of file PostProcessingShaderSSAOImplementation.cpp.