OpenMiner/include/core/Config.hpp

42 lines
891 B
C++
Raw Normal View History

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
*
* Author: Quentin Bazin, <quent42340@gmail.com>
2014-12-15 16:47:30 +01:00
*
* =====================================================================================
*/
#ifndef CONFIG_HPP_
#define CONFIG_HPP_
namespace {
2018-12-20 00:00:01 +01:00
constexpr const char *APP_NAME = "OpenMiner";
2014-12-15 16:47:30 +01:00
constexpr float SCREEN_WIDTH = 1600;
constexpr float SCREEN_HEIGHT = 1050;
2014-12-15 16:47:30 +01:00
constexpr float FOV = 45.0f;
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;
}
extern int GUI_SCALE; // FIXME
2018-06-28 08:52:55 +02:00
namespace Config {
extern bool isSmoothLightingEnabled;
}
2014-12-15 16:47:30 +01:00
#endif // CONFIG_HPP_