TDME2 1.9.121
PostProcessingShaderVignetteImplementation.h
Go to the documentation of this file.
1#pragma once
2
3#include <tdme/tdme.h>
8
11
12/**
13 * Post processing shader vignette implementation
14 * @author Andreas Drewke
15 * @version $Id$
16 */
18{
19private:
20 int32_t uniformIntensity { -1 };
21 int32_t uniformBorderColor { -1 };
22
23public:
24 /**
25 * Returns if shader is supported on given renderer
26 * @param renderer renderer
27 * @return if shader is supported
28 */
29 static bool isSupported(Renderer* renderer);
30
31 /**
32 * Public constructor
33 * @param renderer renderer
34 */
36
37 // overridden methods
38 virtual void initialize() override;
39 virtual void setShaderParameters(int contextIdx, Engine* engine) override;
40
41};
Engine main class.
Definition: Engine.h:122
virtual void setShaderParameters(int contextIdx, Engine *engine) override
Set shader parameters.
static bool isSupported(Renderer *renderer)
Returns if shader is supported on given renderer.