From 8b275c0b0a1064a813ef14a109b64e1fce461893 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Mon, 7 Aug 2017 20:08:15 +0500 Subject: 2017-08-07 --- src/Renderer.hpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/Renderer.hpp') 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 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 -- cgit v1.2.3