migrant a SDL3
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <SDL3/SDL_rect.h> // Para SDL_Rect
|
||||
#include <SDL3/SDL_rect.h> // Para SDL_FRect
|
||||
#include <SDL3/SDL_render.h> // Para SDL_Renderer, SDL_Texture
|
||||
#include "utils.h"
|
||||
|
||||
@@ -32,8 +32,8 @@ private:
|
||||
SDL_Texture *canvas_; // Textura donde dibujar el fondo formado por tiles
|
||||
|
||||
// Variables
|
||||
SDL_Rect pos_; // Posición y tamaño del mosaico
|
||||
SDL_Rect window_; // Ventana visible para la textura de fondo del titulo
|
||||
SDL_FRect pos_; // Posición y tamaño del mosaico
|
||||
SDL_FRect window_; // Ventana visible para la textura de fondo del titulo
|
||||
TiledBGMode mode_; // Tipo de movimiento del mosaico
|
||||
double sin_[360]; // Vector con los valores del seno precalculados
|
||||
float desp_ = 0.0f; // Desplazamiento aplicado
|
||||
@@ -51,7 +51,7 @@ private:
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
TiledBG(SDL_Rect pos, TiledBGMode mode);
|
||||
TiledBG(SDL_FRect pos, TiledBGMode mode);
|
||||
|
||||
// Destructor
|
||||
~TiledBG();
|
||||
|
||||
Reference in New Issue
Block a user