diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-01-13 11:35:01 +0100 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-01-13 11:35:57 +0100 |
commit | cbc6c732183af7654285492f56bf27fcdecd697a (patch) | |
tree | 436a2eacb47c2a1f9d8f6a1e407e95d07e70a6c4 /src/Render.hpp | |
parent | Replaced all usages of NC to new implementation (diff) | |
download | AltCraft-cbc6c732183af7654285492f56bf27fcdecd697a.tar AltCraft-cbc6c732183af7654285492f56bf27fcdecd697a.tar.gz AltCraft-cbc6c732183af7654285492f56bf27fcdecd697a.tar.bz2 AltCraft-cbc6c732183af7654285492f56bf27fcdecd697a.tar.lz AltCraft-cbc6c732183af7654285492f56bf27fcdecd697a.tar.xz AltCraft-cbc6c732183af7654285492f56bf27fcdecd697a.tar.zst AltCraft-cbc6c732183af7654285492f56bf27fcdecd697a.zip |
Diffstat (limited to 'src/Render.hpp')
-rw-r--r-- | src/Render.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Render.hpp b/src/Render.hpp index 7d3af39..3367100 100644 --- a/src/Render.hpp +++ b/src/Render.hpp @@ -9,6 +9,7 @@ #include "Utility.hpp" #include "Renderer.hpp" +#include "Event.hpp" class RendererWorld; @@ -17,7 +18,6 @@ class Render { SDL_GLContext glContext; bool renderGui = false; - bool isRunning = true; bool isMouseCaptured = false; int prevMouseX, prevMouseY; float mouseXDelta, mouseYDelta; @@ -30,7 +30,7 @@ class Render { float sensetivity = 0.1f; bool isWireframe = false; std::vector<std::string> chatMessages; - + EventListener listener; std::string stateString; void SetMouseCapture(bool IsCaptured); @@ -50,9 +50,12 @@ class Render { void UpdateKeyboard(); void RenderGui(); + + void InitEvents(); + public: Render(unsigned int windowWidth, unsigned int windowHeight, std::string windowTitle); ~Render(); - void ExecuteRenderLoop(); + void Update(); };
\ No newline at end of file |