summaryrefslogtreecommitdiffstats
path: root/src/Render.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2023-07-08 21:41:27 +0200
committerGitHub <noreply@github.com>2023-07-08 21:41:27 +0200
commita68f48ad526d0843eb451af0be7f119db5ff794e (patch)
tree3c539c9e7de841c6616f532dadb7c8c1ef552d95 /src/Render.hpp
parentMerge pull request #80 from LaG1924/ftr/better-water (diff)
parentFixed some errors detected by static analysis (diff)
downloadAltCraft-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.hpp6
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();