summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-13 04:26:03 +0100
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-13 04:26:03 +0100
commit10e0dbf881aaf31c82fd90305e6992027f840e01 (patch)
treebcf4250ae3e02a4ed19c73585f785f5684d83e41 /src
parentUpdated to 1.12.2 (diff)
downloadAltCraft-10e0dbf881aaf31c82fd90305e6992027f840e01.tar
AltCraft-10e0dbf881aaf31c82fd90305e6992027f840e01.tar.gz
AltCraft-10e0dbf881aaf31c82fd90305e6992027f840e01.tar.bz2
AltCraft-10e0dbf881aaf31c82fd90305e6992027f840e01.tar.lz
AltCraft-10e0dbf881aaf31c82fd90305e6992027f840e01.tar.xz
AltCraft-10e0dbf881aaf31c82fd90305e6992027f840e01.tar.zst
AltCraft-10e0dbf881aaf31c82fd90305e6992027f840e01.zip
Diffstat (limited to 'src')
-rw-r--r--src/Render.cpp4
-rw-r--r--src/Render.hpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Render.cpp b/src/Render.cpp
index 9c6cb38..5aa38d7 100644
--- a/src/Render.cpp
+++ b/src/Render.cpp
@@ -14,7 +14,7 @@
#include "RendererWorld.hpp"
Render::Render(unsigned int windowWidth, unsigned int windowHeight, std::string windowTitle) : timer(std::chrono::milliseconds(16)) {
- InitSfml(windowWidth, windowHeight, windowTitle);
+ InitSdl(windowWidth, windowHeight, windowTitle);
glCheckError();
InitGlew();
glCheckError();
@@ -31,7 +31,7 @@ Render::~Render() {
SDL_Quit();
}
-void Render::InitSfml(unsigned int WinWidth, unsigned int WinHeight, std::string WinTitle) {
+void Render::InitSdl(unsigned int WinWidth, unsigned int WinHeight, std::string WinTitle) {
LOG(INFO) << "Creating window: " << WinWidth << "x" << WinHeight << " \"" << WinTitle << "\"";
if (SDL_Init(SDL_INIT_VIDEO) < 0)
diff --git a/src/Render.hpp b/src/Render.hpp
index 3998f26..7d3af39 100644
--- a/src/Render.hpp
+++ b/src/Render.hpp
@@ -39,7 +39,7 @@ class Render {
void HandleEvents();
- void InitSfml(unsigned int WinWidth, unsigned int WinHeight, std::string WinTitle);
+ void InitSdl(unsigned int WinWidth, unsigned int WinHeight, std::string WinTitle);
void InitGlew();