diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-08-07 17:08:15 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-08-07 17:08:15 +0200 |
commit | 8b275c0b0a1064a813ef14a109b64e1fce461893 (patch) | |
tree | 7bb1cc13d2eb9be2a344b4cd35f5e581df970f0d /src/Renderer.hpp | |
parent | 2017-08-05 (diff) | |
download | AltCraft-8b275c0b0a1064a813ef14a109b64e1fce461893.tar AltCraft-8b275c0b0a1064a813ef14a109b64e1fce461893.tar.gz AltCraft-8b275c0b0a1064a813ef14a109b64e1fce461893.tar.bz2 AltCraft-8b275c0b0a1064a813ef14a109b64e1fce461893.tar.lz AltCraft-8b275c0b0a1064a813ef14a109b64e1fce461893.tar.xz AltCraft-8b275c0b0a1064a813ef14a109b64e1fce461893.tar.zst AltCraft-8b275c0b0a1064a813ef14a109b64e1fce461893.zip |
Diffstat (limited to 'src/Renderer.hpp')
-rw-r--r-- | src/Renderer.hpp | 14 |
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 |