- renderInfo

- fix: no guardava el preset actual
This commit is contained in:
2026-04-04 20:14:11 +02:00
parent eb3f449a1e
commit d4fc7c0ee8
12 changed files with 197 additions and 6 deletions

View File

@@ -19,6 +19,7 @@ namespace Options {
SDL_Scancode next_shader{Defaults::KeysGUI::NEXT_SHADER};
SDL_Scancode next_shader_preset{Defaults::KeysGUI::NEXT_SHADER_PRESET};
SDL_Scancode toggle_stretch_filter{Defaults::KeysGUI::TOGGLE_STRETCH_FILTER};
SDL_Scancode toggle_render_info{Defaults::KeysGUI::TOGGLE_RENDER_INFO};
};
// Tecles de joc (moviment, accions)
@@ -30,6 +31,11 @@ namespace Options {
SDL_Scancode exit{Defaults::KeysGame::EXIT};
};
// Posició del render info
enum class RenderInfoPosition { OFF = 0,
TOP = 1,
BOTTOM = 2 };
// Opcions de vídeo
struct Video {
bool gpu_acceleration{Defaults::Video::GPU_ACCELERATION};
@@ -40,6 +46,16 @@ namespace Options {
bool stretch_filter_linear{Defaults::Video::STRETCH_FILTER_LINEAR};
int downscale_algo{Defaults::Video::DOWNSCALE_ALGO};
bool linear_upscale{Defaults::Video::LINEAR_UPSCALE};
std::string current_shader{"postfx"}; // "postfx" o "crtpi"
std::string current_postfx_preset{"CRT"}; // Nom del preset PostFX actiu
std::string current_crtpi_preset{"DEFAULT"}; // Nom del preset CrtPi actiu
};
// Opcions del render info
struct RenderInfo {
RenderInfoPosition position{RenderInfoPosition::OFF};
Uint32 text_color{0xFF00D7FF}; // Groc daurat (ABGR)
Uint32 shadow_color{0xFF005A6B}; // Ombra daurada fosca (ABGR)
};
// Opcions d'àudio
@@ -101,6 +117,7 @@ namespace Options {
inline KeysGUI keys_gui{};
inline KeysGame keys_game{};
inline Video video{};
inline RenderInfo render_info{};
inline Audio audio{};
inline Window window{};
inline Game game{};