-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.hpp
34 lines (28 loc) · 831 Bytes
/
config.hpp
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
27
28
29
30
31
32
33
34
#ifndef CONFIG_HPP_
#define CONFIG_HPP_
#include <filesystem>
#include <optional>
#include <vector>
#include "glm/vec2.hpp" // IWYU pragma: keep; supress warning from clangd.
#include "glm/vec3.hpp" // IWYU pragma: keep; supress warning from clangd.
struct Config {
using Path = std::filesystem::path;
struct Motion {
bool disabled;
unsigned int weight;
std::vector<Path> paths;
};
Config();
Path model;
std::vector<Motion> motions;
float simulationFPS;
float gravity;
glm::vec3 lightDirection;
glm::vec2 defaultModelPosition;
float defaultScale;
glm::vec3 defaultCameraPosition;
glm::vec3 defaultGazePosition;
std::optional<int> defaultScreenNumber;
static Config Parse(const std::filesystem::path& configFile);
};
#endif // CONFIG_HPP_