mirror of
https://github.com/Dingo-Shenanigans/ReSkate.git
synced 2026-10-17 19:47:08 +02:00
24 lines
726 B
C++
24 lines
726 B
C++
#pragma once
|
|
#include <array>
|
|
#include <string>
|
|
|
|
namespace dingosdk {
|
|
inline constexpr std::array<const char*, 3> graphics_keys{"film_grain", "vignette", "chromatic_aberration"};
|
|
struct GraphicsControls {
|
|
// -1 leaves the authored setting alone; 0 disables; 1 enables.
|
|
std::array<int, 3> effects{-1, -1, -1};
|
|
bool operator==(const GraphicsControls&) const = default;
|
|
};
|
|
inline bool valid_graphics_controls(const GraphicsControls& c) {
|
|
for (const auto v : c.effects) if (v < -1 || v > 1) return false;
|
|
return true;
|
|
}
|
|
struct GraphicsControlsModel {
|
|
GraphicsControls choices;
|
|
bool available{};
|
|
std::array<bool, 3> ready{}, enabled{};
|
|
unsigned filmic_components{};
|
|
std::string status;
|
|
};
|
|
}
|