migrant a SDL3

This commit is contained in:
2025-03-27 08:14:37 +01:00
parent a9c869baf6
commit d2286905dc
83 changed files with 570 additions and 541 deletions

View File

@@ -1,7 +1,8 @@
#pragma once
#include <SDL3/SDL.h>
#include <SDL3/SDL_blendmode.h> // Para SDL_BlendMode
#include <SDL3/SDL_rect.h> // Para SDL_FRect, SDL_Point
#include <SDL3/SDL_rect.h> // Para SDL_FRect, SDL_FPoint
#include <SDL3/SDL_render.h> // Para SDL_Renderer, SDL_Texture
#include <SDL3/SDL_stdinc.h> // Para Uint32
#include <SDL3/SDL_video.h> // Para SDL_Window
@@ -16,12 +17,6 @@ enum class ScreenFilter : int
LINEAL = 1,
};
enum class ScreenVideoMode : bool
{
WINDOW = false,
FULLSCREEN = true,
};
class Screen
{
private:
@@ -239,10 +234,10 @@ public:
void render();
// Establece el modo de video
void setVideoMode(ScreenVideoMode mode = options.video.mode);
void setFullscreenMode(bool mode = options.video.fullscreen);
// Cambia entre pantalla completa y ventana
void toggleVideoMode();
void toggleFullscreen();
// Cambia el tamaño de la ventana
void setWindowZoom(int size);