diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2023-07-08 21:41:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-08 21:41:27 +0200 |
commit | a68f48ad526d0843eb451af0be7f119db5ff794e (patch) | |
tree | 3c539c9e7de841c6616f532dadb7c8c1ef552d95 /src/Render.hpp | |
parent | Merge pull request #80 from LaG1924/ftr/better-water (diff) | |
parent | Fixed some errors detected by static analysis (diff) | |
download | AltCraft-master.tar AltCraft-master.tar.gz AltCraft-master.tar.bz2 AltCraft-master.tar.lz AltCraft-master.tar.xz AltCraft-master.tar.zst AltCraft-master.zip |
Diffstat (limited to 'src/Render.hpp')
-rw-r--r-- | src/Render.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Render.hpp b/src/Render.hpp index 3ac76e3..a0e5b96 100644 --- a/src/Render.hpp +++ b/src/Render.hpp @@ -28,8 +28,8 @@ class Render { bool renderGui = false; bool isMouseCaptured = false; - int prevMouseX, prevMouseY; - float mouseXDelta, mouseYDelta; + int prevMouseX=0, prevMouseY=0; + float mouseXDelta=0.0f, mouseYDelta=0.0f; std::unique_ptr<RendererWorld> world; bool renderWorld = false; size_t windowWidth, windowHeight; @@ -76,7 +76,7 @@ class Render { void InitRml(); public: - Render(unsigned int windowWidth, unsigned int windowHeight, std::string windowTitle); + Render(unsigned int width, unsigned int height, std::string title); ~Render(); void Update(); |