aboutsummaryrefslogtreecommitdiff
path: root/source/AppConfig.hpp
blob: d797708f56f9608ec669392dda81bf8e9617cb0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 mainWidnowWidth;
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