TDME2  1.9.200
EngineGL2Renderer.h
Go to the documentation of this file.
1 #pragma once
2 
3 #if defined(_MSC_VER)
4  // this suppresses a warning redefinition of APIENTRY macro
5  #define NOMINMAX
6  #include <windows.h>
7 #endif
8 #define GLFW_INCLUDE_NONE
9 #include <GLFW/glfw3.h>
10 
11 #include <string>
12 
13 #include <tdme/tdme.h>
14 #include <tdme/engine/fwd-tdme.h>
17 
18 using std::string;
19 
23 
24 /**
25  * Engine connector of GL2 renderer to other engine functionality
26  * @author Andreas Drewke
27  */
29 {
30 public:
31  // forbid class copy
33 
34  /**
35  * Public constructor
36  */
38 
39  // overridden methods
40  bool prepareWindowSystemRendererContext(int tryIdx) override;
41  bool initializeWindowSystemRendererContext(GLFWwindow* glfwWindow) override;
42  void onUpdateProjectionMatrix(int contextIdx) override;
43  void onUpdateCameraMatrix(int contextIdx) override;
44  void onUpdateModelViewMatrix(int contextIdx) override;
45  void onBindTexture(int contextIdx, int32_t textureId) override;
46  void onUpdateTextureMatrix(int contextIdx) override;
47  void onUpdateEffect(int contextIdx) override;
48  void onUpdateLight(int contextIdx, int32_t lightId) override;
49  void onUpdateMaterial(int contextIdx) override;
50  void onUpdateShader(int contextIdx) override;
51  void onUpdateShaderParameters(int contextIdx) override;
52 
53 };
Engine main class.
Definition: Engine.h:131
Engine connector of GL2 renderer to other engine functionality.
void onUpdateCameraMatrix(int contextIdx) override
Update camera matrix event.
void onUpdateModelViewMatrix(int contextIdx) override
Update model view matrix event.
void onUpdateProjectionMatrix(int contextIdx) override
Update projection matrix event.
void onUpdateTextureMatrix(int contextIdx) override
Update texture matrix for active texture unit event.
void onBindTexture(int contextIdx, int32_t textureId) override
On bind texture event.
void onUpdateMaterial(int contextIdx) override
On update material.
bool prepareWindowSystemRendererContext(int tryIdx) override
Prepare window system renderer context.
void onUpdateEffect(int contextIdx) override
Update material.
bool initializeWindowSystemRendererContext(GLFWwindow *glfwWindow) override
Initialize window system renderer context.
void onUpdateLight(int contextIdx, int32_t lightId) override
Update light.
void onUpdateShaderParameters(int contextIdx) override
On update shader parameters.
void onUpdateShader(int contextIdx) override
On update shader.
#define FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6