From d6f12162a9bf6e5e61ac553a1ed5ee5b36748852 Mon Sep 17 00:00:00 2001 From: benkyd Date: Wed, 11 May 2022 14:02:36 +0000 Subject: [PATCH] minor changes to make running easier --- CMakeLists.txt | 3 +++ src/settings.hpp | 4 ++-- src/world/world.cpp | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 77888f5..679d370 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,9 @@ if (WIN32) endif (WIN32) set(THREADS_PREFER_PTHREAD_FLAD ON) + +set(OpenGL_GL_PREFERENCE GLVND) + find_package(Threads REQUIRED) find_package(OpenGL REQUIRED) diff --git a/src/settings.hpp b/src/settings.hpp index 5ab11c0..b9d747a 100644 --- a/src/settings.hpp +++ b/src/settings.hpp @@ -6,8 +6,8 @@ // TODO: import settings and stuff // for now this works -static const int WindowWidth = 1000; -static const int WindowHeight = 600; +static const int WindowWidth = 1920; +static const int WindowHeight = 1080; static const std::string ResourceBase = MC_RESOURCES; diff --git a/src/world/world.cpp b/src/world/world.cpp index ef02b4a..b4fd3e7 100644 --- a/src/world/world.cpp +++ b/src/world/world.cpp @@ -28,8 +28,8 @@ void World::LoadWorld() { m_noiseGenerator->SetFractalOctaves(8); - for (int x = -4; x < 50; x++) - for (int y = -50; y < 4; y++) { + for (int x = -4; x < 5; x++) + for (int y = -5; y < 4; y++) { m_chunkLoaderQueue.push({ x, y });