treballant en sdl3gpu
This commit is contained in:
@@ -2,11 +2,16 @@
|
||||
|
||||
#include <SDL3/SDL.h>
|
||||
|
||||
// Tecles GUI (capa de presentació — finestra, zoom, etc.)
|
||||
// Tecles GUI (capa de presentació — finestra, zoom, shaders, etc.)
|
||||
namespace Defaults::KeysGUI {
|
||||
constexpr SDL_Scancode DEC_ZOOM = SDL_SCANCODE_F1;
|
||||
constexpr SDL_Scancode INC_ZOOM = SDL_SCANCODE_F2;
|
||||
constexpr SDL_Scancode FULLSCREEN = SDL_SCANCODE_F3;
|
||||
constexpr SDL_Scancode TOGGLE_SHADER = SDL_SCANCODE_F4;
|
||||
constexpr SDL_Scancode TOGGLE_ASPECT_RATIO = SDL_SCANCODE_F5;
|
||||
constexpr SDL_Scancode TOGGLE_SUPERSAMPLING = SDL_SCANCODE_F6;
|
||||
constexpr SDL_Scancode NEXT_SHADER = SDL_SCANCODE_F7;
|
||||
constexpr SDL_Scancode NEXT_SHADER_PRESET = SDL_SCANCODE_F8;
|
||||
} // namespace Defaults::KeysGUI
|
||||
|
||||
// Tecles de joc (moviment del personatge, accions)
|
||||
@@ -18,6 +23,16 @@ namespace Defaults::KeysGame {
|
||||
constexpr SDL_Scancode EXIT = SDL_SCANCODE_ESCAPE;
|
||||
} // namespace Defaults::KeysGame
|
||||
|
||||
namespace Defaults::Video {
|
||||
constexpr bool GPU_ACCELERATION = true;
|
||||
constexpr bool SHADER_ENABLED = false;
|
||||
constexpr bool SUPERSAMPLING = false;
|
||||
constexpr bool INTEGER_SCALE = true;
|
||||
constexpr bool ASPECT_RATIO_4_3 = true; // CRT original estira 200→240
|
||||
constexpr int DOWNSCALE_ALGO = 1; // 0=bilinear, 1=Lanczos2, 2=Lanczos3
|
||||
constexpr bool LINEAR_UPSCALE = false;
|
||||
} // namespace Defaults::Video
|
||||
|
||||
namespace Defaults::Audio {
|
||||
constexpr float VOLUME = 1.0F;
|
||||
constexpr bool MUSIC_ENABLED = true;
|
||||
|
||||
Reference in New Issue
Block a user