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 the common definitions.
4/// @namespace cae
5///
6
7#pragma once
8
9#include "CAE/Version.hpp"
10
11#include "Engine/Common.hpp"
12
13namespace cae
14{
15 namespace MESSAGE
16 {
17 static constexpr std::string_view HELP_MSG = "Usage: " PROJECT_NAME APP_EXTENSION " [options]\n\n"
18 "Options:\n"
19 " -h, --help Show this help message\n"
20 " -v, --version Show version information\n"
21 " -c, --config <path> Specify JSON configuration file";
22 static constexpr std::string_view VERSION_MSG = PROJECT_NAME
23 " v" PROJECT_VERSION " " BUILD_TYPE " (" GIT_TAG ", commit " GIT_COMMIT_HASH ") " __DATE__ " " __TIME__;
24 } // namespace MESSAGE
25
26 namespace PLUGINS::NAME
27 {
28 namespace RENDERER
29 {
30 inline constexpr auto OPENGL = "OpenGL";
31 inline constexpr auto VULKAN = "Vulkan";
32 } // namespace RENDERER
33
34 namespace SHADER
35 {
36 namespace IR
37 {
38 inline constexpr auto SPIRV = "SPIRV";
39 } // namespace IR
40
41 namespace FRONTEND
42 {
43 inline constexpr auto GLSL = "GLSL";
44 } // namespace FRONTEND
45
46 } // namespace SHADER
47
48 namespace WINDOW
49 {
50 inline constexpr auto COCOA = "Cocoa";
51 inline constexpr auto GLFW = "GLFW";
52 inline constexpr auto WIN32_ = "Win32";
53 inline constexpr auto X11 = "X11";
54 } // namespace WINDOW
55
56 } // namespace PLUGINS::NAME
57
58 namespace USER
59 {
60 inline constexpr auto NAME = "User";
61 } // namespace USER
62
63} // namespace cae
#define BUILD_TYPE
Definition Version.hpp:15
#define PROJECT_VERSION
Definition Version.hpp:8
#define GIT_TAG
Definition Version.hpp:14
#define PROJECT_NAME
Definition Version.hpp:7
#define GIT_COMMIT_HASH
Definition Version.hpp:13
Class for the GLFW plugin.
Definition GLFW.hpp:31
Class for the GLSL plugin.
Definition GLSL.hpp:26
Class for the SPIR-V IR plugin.
Definition SPIRV.hpp:20
This file contains common constants used across the engine.
#define APP_EXTENSION
Definition Common.hpp:14
static constexpr std::string_view VERSION_MSG
Definition Common.hpp:22
static constexpr std::string_view HELP_MSG
Definition Common.hpp:17
constexpr auto COCOA
Definition Common.hpp:50
constexpr auto WIN32_
Definition Common.hpp:52
constexpr auto NAME
Definition Common.hpp:60