summaryrefslogtreecommitdiffstats
path: root/src/Renderer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Renderer.hpp')
-rw-r--r--src/Renderer.hpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/Renderer.hpp b/src/Renderer.hpp
index 81c5c50..de2e331 100644
--- a/src/Renderer.hpp
+++ b/src/Renderer.hpp
@@ -3,16 +3,18 @@
#include <GL/glew.h>
class RenderState {
- GLuint ActiveVao;
- GLuint ActiveShader;
+ GLuint ActiveVao = 0;
+ GLuint ActiveShader = 0;
public:
void SetActiveVao(GLuint Vao);
void SetActiveShader(GLuint Shader);
+ unsigned int WindowWidth, WindowHeight;
};
struct Renderer {
- virtual ~Renderer() = default;
- virtual void Render(RenderState& renderState) = 0;
- virtual void PrepareResources() = 0;
- virtual void PrepareRender() = 0;
+ virtual ~Renderer() = default;
+ virtual void Render(RenderState& renderState) = 0;
+ virtual void PrepareResources() = 0;
+ virtual void PrepareRender() = 0;
+ virtual bool IsNeedResourcesPrepare() = 0;
}; \ No newline at end of file