TDME2 1.9.121
Public Member Functions | Static Public Member Functions | List of all members
PostProcessingShaderBlurImplementation Class Reference

Post processing shader blur implementation. More...

#include <tdme/engine/subsystems/postprocessing/PostProcessingShaderBlurImplementation.h>

Inheritance diagram for PostProcessingShaderBlurImplementation:
Inheritance graph
Collaboration diagram for PostProcessingShaderBlurImplementation:
Collaboration graph

Public Member Functions

 PostProcessingShaderBlurImplementation (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...
 
- Public Member Functions inherited from PostProcessingShaderBaseImplementation
 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...
 
- Public Member Functions inherited from PostProcessingShaderImplementation
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

- Protected Attributes inherited from PostProcessingShaderBaseImplementation
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 }
 
Rendererrenderer { nullptr }
 

Detailed Description

Post processing shader blur implementation.

Author
Andreas Drewke
Version
$Id$

Definition at line 17 of file PostProcessingShaderBlurImplementation.h.

Constructor & Destructor Documentation

◆ PostProcessingShaderBlurImplementation()

Public constructor.

Parameters
rendererrenderer

Definition at line 19 of file PostProcessingShaderBlurImplementation.cpp.

Member Function Documentation

◆ initialize()

void initialize ( )
overridevirtual

Initialize post processing shader.

Reimplemented from PostProcessingShaderBaseImplementation.

Definition at line 23 of file PostProcessingShaderBlurImplementation.cpp.

◆ isSupported()

bool isSupported ( Renderer renderer)
static

Returns if shader is supported on given renderer.

Parameters
rendererrenderer
Returns
if shader is supported

Definition at line 15 of file PostProcessingShaderBlurImplementation.cpp.

◆ setShaderParameters()

void setShaderParameters ( int  contextIdx,
Engine engine 
)
overridevirtual

Set shader parameters.

Parameters
contextIdxcontext index
engineengine

Implements PostProcessingShaderBaseImplementation.

Definition at line 61 of file PostProcessingShaderBlurImplementation.cpp.


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