TDME2 1.9.121
|
Post processing shader base implementation. More...
#include <tdme/engine/subsystems/postprocessing/PostProcessingShaderBaseImplementation.h>
Public Member Functions | |
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... | |
Protected Attributes | |
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 base implementation.
Definition at line 18 of file PostProcessingShaderBaseImplementation.h.
PostProcessingShaderBaseImplementation | ( | Renderer * | renderer | ) |
Public constructor.
renderer | renderer |
Definition at line 12 of file PostProcessingShaderBaseImplementation.cpp.
|
overridevirtual |
Initialize post processing shader.
Implements PostProcessingShaderImplementation.
Reimplemented in PostProcessingShaderBlurImplementation, PostProcessingShaderDefaultImplementation, PostProcessingShaderDesaturationImplementation, PostProcessingShaderLightScatteringImplementation, PostProcessingShaderSSAOImplementation, PostProcessingShaderSSAOMapImplementation, and PostProcessingShaderVignetteImplementation.
Definition at line 24 of file PostProcessingShaderBaseImplementation.cpp.
|
overridevirtual |
Implements PostProcessingShaderImplementation.
Definition at line 19 of file PostProcessingShaderBaseImplementation.cpp.
|
overridevirtual |
Set source buffer pixel height.
contextIdx | context index |
pixelHeight | pixel height |
Implements PostProcessingShaderImplementation.
Definition at line 69 of file PostProcessingShaderBaseImplementation.cpp.
|
overridevirtual |
Set source buffer pixel width.
contextIdx | context index |
pixelWidth | pixel width |
Implements PostProcessingShaderImplementation.
Definition at line 63 of file PostProcessingShaderBaseImplementation.cpp.
|
overridepure virtual |
Set shader parameters.
contextIdx | context index |
engine | engine |
Implements PostProcessingShaderImplementation.
Implemented in PostProcessingShaderBlurImplementation, PostProcessingShaderDefaultImplementation, PostProcessingShaderDesaturationImplementation, PostProcessingShaderLightScatteringImplementation, PostProcessingShaderSSAOImplementation, PostProcessingShaderSSAOMapImplementation, and PostProcessingShaderVignetteImplementation.
|
overridevirtual |
Unuse program.
Implements PostProcessingShaderImplementation.
Definition at line 58 of file PostProcessingShaderBaseImplementation.cpp.
|
overridevirtual |
Use program.
contextIdx | context index |
Implements PostProcessingShaderImplementation.
Reimplemented in PostProcessingShaderSSAOMapImplementation.
Definition at line 47 of file PostProcessingShaderBaseImplementation.cpp.
|
protected |
Definition at line 24 of file PostProcessingShaderBaseImplementation.h.
|
protected |
Definition at line 34 of file PostProcessingShaderBaseImplementation.h.
|
protected |
Definition at line 33 of file PostProcessingShaderBaseImplementation.h.
|
protected |
Definition at line 21 of file PostProcessingShaderBaseImplementation.h.
|
protected |
Definition at line 35 of file PostProcessingShaderBaseImplementation.h.
|
protected |
Definition at line 31 of file PostProcessingShaderBaseImplementation.h.
|
protected |
Definition at line 30 of file PostProcessingShaderBaseImplementation.h.
|
protected |
Definition at line 26 of file PostProcessingShaderBaseImplementation.h.
|
protected |
Definition at line 27 of file PostProcessingShaderBaseImplementation.h.
|
protected |
Definition at line 28 of file PostProcessingShaderBaseImplementation.h.
|
protected |
Definition at line 29 of file PostProcessingShaderBaseImplementation.h.
|
protected |
Definition at line 23 of file PostProcessingShaderBaseImplementation.h.