TDME2 1.9.121
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
PostProcessingShaderVignetteImplementation Class Reference

Post processing shader vignette implementation. More...

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

Inheritance diagram for PostProcessingShaderVignetteImplementation:
Inheritance graph
Collaboration diagram for PostProcessingShaderVignetteImplementation:
Collaboration graph

Public Member Functions

 PostProcessingShaderVignetteImplementation (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...
 

Private Attributes

int32_t uniformIntensity { -1 }
 
int32_t uniformBorderColor { -1 }
 

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 vignette implementation.

Author
Andreas Drewke
Version
$Id$

Definition at line 17 of file PostProcessingShaderVignetteImplementation.h.

Constructor & Destructor Documentation

◆ PostProcessingShaderVignetteImplementation()

Public constructor.

Parameters
rendererrenderer

Definition at line 23 of file PostProcessingShaderVignetteImplementation.cpp.

Member Function Documentation

◆ initialize()

void initialize ( )
overridevirtual

Initialize post processing shader.

Reimplemented from PostProcessingShaderBaseImplementation.

Definition at line 27 of file PostProcessingShaderVignetteImplementation.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 19 of file PostProcessingShaderVignetteImplementation.cpp.

◆ setShaderParameters()

void setShaderParameters ( int  contextIdx,
Engine engine 
)
overridevirtual

Set shader parameters.

Parameters
contextIdxcontext index
engineengine

Implements PostProcessingShaderBaseImplementation.

Definition at line 74 of file PostProcessingShaderVignetteImplementation.cpp.

Member Data Documentation

◆ uniformBorderColor

int32_t uniformBorderColor { -1 }
private

Definition at line 21 of file PostProcessingShaderVignetteImplementation.h.

◆ uniformIntensity

int32_t uniformIntensity { -1 }
private

Definition at line 20 of file PostProcessingShaderVignetteImplementation.h.


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