cae  0.0.0
Cross-API graphics engine
Loading...
Searching...
No Matches
Common.hpp
Go to the documentation of this file.
1///
2/// @file Common.hpp
3/// @brief This file contains common constants used across the engine
4/// @namespace cae
5///
6
7#pragma once
8
9#include <cstdint>
10
11#ifdef _WIN32
12#define APP_EXTENSION ".exe"
13#else
14#define APP_EXTENSION ""
15#endif
16
17namespace cae
18{
19 namespace AUDIO
20 {
21 inline constexpr auto VOLUME = 1.F;
22 inline constexpr auto MUTED = false;
23 } // namespace AUDIO
24
25 namespace CAMERA
26 {
27 inline constexpr auto NAME = "Default name";
28 inline constexpr auto MOVE_SPEED = 2.5F;
29 inline constexpr auto LOOK_SPEED = 10.0F;
30 inline constexpr auto FOV = 45.F;
31 inline constexpr auto NEAR_PLANE = 0.1F;
32 inline constexpr auto FAR_PLANE = 100.F;
33 } // namespace CAMERA
34
35 namespace LOG
36 {
37 inline constexpr auto LOG_FPS = false;
38 } // namespace LOG
39
40 namespace NETWORK
41 {
42 inline constexpr auto HOST = "127.0.0.1";
43 inline constexpr auto PORT = 4242;
44 } // namespace NETWORK
45
46 namespace RENDERER
47 {
48 inline constexpr auto VSYNC = false;
49 inline constexpr auto FRAME_RATE_LIMIT = 90;
50 inline constexpr auto CLEAR_COLOR_R = 1.0F;
51 inline constexpr auto CLEAR_COLOR_G = 1.0F;
52 inline constexpr auto CLEAR_COLOR_B = 1.0F;
53 inline constexpr auto CLEAR_COLOR_A = 1.0F;
54 } // namespace RENDERER
55
56 namespace WINDOW
57 {
58 inline constexpr uint16_t WIDTH = 960;
59 inline constexpr uint16_t HEIGHT = 540;
60 inline constexpr auto NAME = "Default name";
61 inline constexpr auto FULLSCREEN = false;
62 inline constexpr auto ICON_PATH = "";
63 } // namespace WINDOW
64
65} // namespace cae
constexpr auto VOLUME
Definition Common.hpp:21
constexpr auto MUTED
Definition Common.hpp:22
constexpr auto NEAR_PLANE
Definition Common.hpp:31
constexpr auto NAME
Definition Common.hpp:27
constexpr auto FOV
Definition Common.hpp:30
constexpr auto MOVE_SPEED
Definition Common.hpp:28
constexpr auto FAR_PLANE
Definition Common.hpp:32
constexpr auto LOOK_SPEED
Definition Common.hpp:29
constexpr auto LOG_FPS
Definition Common.hpp:37
constexpr auto PORT
Definition Common.hpp:43
constexpr auto HOST
Definition Common.hpp:42
constexpr auto CLEAR_COLOR_B
Definition Common.hpp:52
constexpr auto VSYNC
Definition Common.hpp:48
constexpr auto CLEAR_COLOR_A
Definition Common.hpp:53
constexpr auto CLEAR_COLOR_R
Definition Common.hpp:50
constexpr auto FRAME_RATE_LIMIT
Definition Common.hpp:49
constexpr auto CLEAR_COLOR_G
Definition Common.hpp:51
constexpr uint16_t WIDTH
Definition Common.hpp:58
constexpr auto NAME
Definition Common.hpp:60
constexpr auto ICON_PATH
Definition Common.hpp:62
constexpr auto FULLSCREEN
Definition Common.hpp:61
constexpr uint16_t HEIGHT
Definition Common.hpp:59