TDME2 1.9.121
PostProcessingShaderSSAOMapImplementation.h
Go to the documentation of this file.
1#pragma once
2
3#include <array>
4
5#include <tdme/tdme.h>
10
11using std::array;
12
15
16/**
17 * Post processing shader SSAO map generation implementation
18 * @author Andreas Drewke
19 * @version $Id$
20 */
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 useProgram(int contextIdx) override;
40 virtual void setShaderParameters(int contextIdx, Engine* engine) override;
41
42private:
43 array<int32_t, 16> uniformSphere;
45 int32_t randomTextureId { -1 };
46};
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.