diff options
author | rtk0c <[email protected]> | 2022-06-03 23:30:01 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-06-03 23:30:01 -0700 |
commit | 791b3f354b378769bffe623b05f1305c91b77101 (patch) | |
tree | 5409b311e6232eb4a6d3f8259b780d76b8ee1c59 /ProjectBrussel/Game/AppConfig.hpp | |
parent | 60ccc62f4934e44ad5b905fdbcf458302b8d8a09 (diff) |
Changeset: 64 [WIP] Rename directoriesmaster-switch-to-build2
Diffstat (limited to 'ProjectBrussel/Game/AppConfig.hpp')
-rw-r--r-- | ProjectBrussel/Game/AppConfig.hpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ProjectBrussel/Game/AppConfig.hpp b/ProjectBrussel/Game/AppConfig.hpp new file mode 100644 index 0000000..794bee5 --- /dev/null +++ b/ProjectBrussel/Game/AppConfig.hpp @@ -0,0 +1,26 @@ +#pragma once + +#include <imgui.h> +#include <filesystem> +#include <string> + +namespace AppConfig { +constexpr std::string_view kAppName = "ProjectBrussel"; +// Since kAppName is initialized by a C string literal, we know it's null termianted +constexpr const char* kAppNameC = kAppName.data(); + +inline float mainWindowWidth; +inline float mainWindowHeight; +inline float mainWindowAspectRatio; + +// TODO add a bold font +inline ImFont* fontRegular = nullptr; +inline ImFont* fontBold = nullptr; + +// Duplicate each as path and string so that on non-UTF-8 platforms (e.g. Windows) we can easily do string manipulation on the paths +// NOTE: even though non-const, these should not be modified outside of main() +inline std::filesystem::path dataDirPath; +inline std::string dataDir; +inline std::filesystem::path assetDirPath; +inline std::string assetDir; +} // namespace AppConfig |