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_
|
|
|
|
|
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
|
|
|
|
2018-06-25 15:31:01 +02:00
|
|
|
constexpr float SCREEN_WIDTH = 1600;
|
|
|
|
constexpr float SCREEN_HEIGHT = 1050;
|
2014-12-15 16:47:30 +01:00
|
|
|
|
2018-12-30 04:43:57 +01:00
|
|
|
constexpr float FOV = 45.0f;
|
|
|
|
|
2018-06-25 15:31:01 +02:00
|
|
|
constexpr float DIST_NEAR = 0.1f;
|
|
|
|
constexpr float DIST_FAR = 1000.0f;
|
|
|
|
|
|
|
|
constexpr int CHUNK_WIDTH = 16.0f;
|
|
|
|
constexpr int CHUNK_HEIGHT = 32.0f;
|
|
|
|
constexpr int CHUNK_DEPTH = 16.0f;
|
|
|
|
|
|
|
|
constexpr int SEALEVEL = 4;
|
2018-07-06 11:58:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
extern int GUI_SCALE; // FIXME
|
2018-06-28 08:52:55 +02:00
|
|
|
|
2018-07-06 11:58:34 +02:00
|
|
|
namespace Config {
|
|
|
|
extern bool isSmoothLightingEnabled;
|
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_
|