2014-12-15 16:47:30 +01:00
|
|
|
/*
|
|
|
|
* =====================================================================================
|
|
|
|
*
|
|
|
|
* Filename: Config.hpp
|
|
|
|
*
|
2018-06-05 01:24:54 +02:00
|
|
|
* Description:
|
2014-12-15 16:47:30 +01:00
|
|
|
*
|
|
|
|
* Created: 14/12/2014 13:45:14
|
|
|
|
*
|
2018-06-14 03:19:35 +02:00
|
|
|
* Author: Quentin Bazin, <quent42340@gmail.com>
|
2014-12-15 16:47:30 +01:00
|
|
|
*
|
|
|
|
* =====================================================================================
|
|
|
|
*/
|
|
|
|
#ifndef CONFIG_HPP_
|
|
|
|
#define CONFIG_HPP_
|
|
|
|
|
2019-01-15 08:25:10 +01:00
|
|
|
#include <gk/core/IntTypes.hpp>
|
|
|
|
|
2018-06-25 15:31:01 +02:00
|
|
|
namespace {
|
2018-12-20 00:00:01 +01:00
|
|
|
constexpr const char *APP_NAME = "OpenMiner";
|
2014-12-15 16:47:30 +01:00
|
|
|
|
2020-01-23 22:38:44 +09:00
|
|
|
constexpr float DIST_NEAR = 0.1f;
|
2018-06-25 15:31:01 +02:00
|
|
|
constexpr float DIST_FAR = 1000.0f;
|
|
|
|
|
2019-01-27 07:11:43 +01:00
|
|
|
constexpr int CHUNK_WIDTH = 16;
|
|
|
|
constexpr int CHUNK_HEIGHT = 32;
|
|
|
|
constexpr int CHUNK_DEPTH = 16;
|
|
|
|
|
2018-06-25 15:31:01 +02:00
|
|
|
constexpr int SEALEVEL = 4;
|
2018-07-06 11:58:34 +02:00
|
|
|
}
|
|
|
|
|
2020-01-27 15:33:06 +09:00
|
|
|
// FIXME
|
|
|
|
extern float SCREEN_WIDTH;
|
|
|
|
extern float SCREEN_HEIGHT;
|
|
|
|
|
|
|
|
// FIXME
|
|
|
|
extern int GUI_SCALE;
|
2018-06-28 08:52:55 +02:00
|
|
|
|
2018-07-06 11:58:34 +02:00
|
|
|
namespace Config {
|
2019-01-12 19:49:41 +01:00
|
|
|
// Gameplay
|
|
|
|
extern bool isFlyModeEnabled;
|
2019-01-19 15:21:49 +01:00
|
|
|
extern bool isNoClipEnabled;
|
2019-01-12 19:49:41 +01:00
|
|
|
|
|
|
|
// Graphics
|
2020-01-27 15:33:06 +09:00
|
|
|
extern u16 renderDistance;
|
2019-01-27 21:37:53 +01:00
|
|
|
extern bool isTorchSmoothLightingEnabled;
|
|
|
|
extern bool isSunSmoothLightingEnabled;
|
2018-12-31 07:45:11 +01:00
|
|
|
extern bool isAmbientOcclusionEnabled;
|
|
|
|
extern bool isWireframeModeEnabled;
|
2020-01-27 15:33:06 +09:00
|
|
|
extern bool isFullscreenModeEnabled;
|
2020-01-25 15:29:14 +09:00
|
|
|
extern float cameraFOV;
|
2020-01-27 15:33:06 +09:00
|
|
|
|
|
|
|
// Input
|
2020-01-26 16:03:43 +09:00
|
|
|
extern u8 mouseSensitivity;
|
2018-06-25 15:31:01 +02:00
|
|
|
}
|
2018-06-13 03:47:20 +02:00
|
|
|
|
2014-12-15 16:47:30 +01:00
|
|
|
#endif // CONFIG_HPP_
|