mirror of
https://github.com/Mr-Wiseguy/Zelda64Recomp.git
synced 2024-11-29 08:04:18 +01:00
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
#ifndef __CONFIG_HPP__
|
|
#define __CONFIG_HPP__
|
|
|
|
#include "common/rt64_user_configuration.h"
|
|
|
|
namespace ultramodern {
|
|
enum class Resolution {
|
|
Original,
|
|
Original2x,
|
|
Auto,
|
|
OptionCount
|
|
};
|
|
enum class WindowMode {
|
|
Windowed,
|
|
Fullscreen,
|
|
OptionCount
|
|
};
|
|
|
|
struct GraphicsConfig {
|
|
Resolution res_option;
|
|
WindowMode wm_option;
|
|
RT64::UserConfiguration::AspectRatio ar_option;
|
|
RT64::UserConfiguration::Antialiasing msaa_option;
|
|
RT64::UserConfiguration::RefreshRate rr_option;
|
|
int rr_manual_value;
|
|
bool developer_mode;
|
|
|
|
auto operator<=>(const GraphicsConfig& rhs) const = default;
|
|
};
|
|
|
|
void set_graphics_config(const GraphicsConfig& config);
|
|
GraphicsConfig get_graphics_config();
|
|
|
|
NLOHMANN_JSON_SERIALIZE_ENUM(ultramodern::Resolution, {
|
|
{ultramodern::Resolution::Original, "Original"},
|
|
{ultramodern::Resolution::Original2x, "Original2x"},
|
|
{ultramodern::Resolution::Auto, "Auto"},
|
|
});
|
|
|
|
NLOHMANN_JSON_SERIALIZE_ENUM(ultramodern::WindowMode, {
|
|
{ultramodern::WindowMode::Windowed, "Windowed"},
|
|
{ultramodern::WindowMode::Fullscreen, "Fullscreen"}
|
|
});
|
|
};
|
|
|
|
#endif
|