Added version info

This commit is contained in:
MihailRis 2023-11-27 16:07:53 +03:00
parent 03e2678eca
commit 6fcfc7e272
2 changed files with 8 additions and 1 deletions

View File

@ -4,6 +4,12 @@
#include <limits.h>
#include "typedefs.h"
#define ENGINE_VERSION_MAJOR 0
#define ENGINE_VERSION_MINOR 15
#define STR_(x) #x
#define STR(x) STR_(x)
#define ENGINE_VERSION STR(ENGINE_VERSION_MAJOR) "." STR(ENGINE_VERSION_MINOR)
#define CHUNK_W 16
#define CHUNK_H 256
#define CHUNK_D 16

View File

@ -3,6 +3,7 @@
#include <string>
#include "constants.h"
#include "typedefs.h"
struct DisplaySettings {
@ -17,7 +18,7 @@ struct DisplaySettings {
/* GLFW swap interval value, 0 - unlimited fps, 1 - vsync*/
int swapInterval = 1;
/* Window title */
const char* title = "VoxelEngine-Cpp v0.14";
const char* title = "VoxelEngine-Cpp v" ENGINE_VERSION;
};
struct ChunksSettings {