TDME2  1.9.200
LightingShaderTerrainEditorImplementation.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 #include <tdme/tdme.h>
9 
10 using std::string;
11 
14 
15 /**
16  * Lighting shader implementation
17  * @author Andreas Drewke
18  */
20 {
21 public:
22  // forbid class copy
24 
25  /**
26  * Public constructor
27  * @param renderer renderer
28  */
30 
31  // overridden methods
32  virtual const string getId() override;
33  virtual void initialize() override;
34  virtual void registerShader() override;
35  virtual void useProgram(Engine* engine, int contextIdx) override;
36 
37 private:
38  int32_t uniformBrushEnabled { -1 };
39  int32_t uniformBrushTextureUnit { -1 };
40  int32_t uniformBrushTextureMatrix { -1 };
41  int32_t uniformBrushPosition { -1 };
43 
44 };
Engine main class.
Definition: Engine.h:131
virtual void useProgram(Engine *engine, int contextIdx) override
Use lighting program.
#define FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6