TDME2  1.9.200
PostProcessingShaderLightScatteringImplementation.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 #include <tdme/tdme.h>
9 #include <tdme/engine/Engine.h>
10 
11 using std::string;
12 
15 
16 /**
17  * Post processing shader implementation
18  * @author Andreas Drewke
19  */
21 {
22 private:
23  array<int32_t, Engine::LIGHTS_MAX> uniformLightEnabled;
24  array<int32_t, Engine::LIGHTS_MAX> uniformLightPosition;
25  array<int32_t, Engine::LIGHTS_MAX> uniformLightIntensity;
26 
27 public:
28  /**
29  * Returns if shader is supported on given renderer
30  * @param renderer renderer
31  * @return if shader is supported
32  */
33  static bool isSupported(Renderer* renderer);
34 
35  // forbid class copy
37 
38  /**
39  * Public constructor
40  * @param renderer renderer
41  */
43 
44  // overridden methods
45  virtual void initialize() override;
46  virtual void setShaderParameters(int contextIdx, Engine* engine) override;
47 
48 };
Engine main class.
Definition: Engine.h:131
#define FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6