Fade: el color passa a estar en param.h

This commit is contained in:
2025-06-26 14:04:01 +02:00
parent 7c473d7a3d
commit 13c4f66228
12 changed files with 60 additions and 43 deletions

View File

@@ -4,6 +4,7 @@
#include <SDL3/SDL_render.h>
#include <SDL3/SDL_stdinc.h>
#include <vector>
#include "utils.h"
// Tipos de fundido
enum class FadeType : Uint8
@@ -46,6 +47,7 @@ public:
// --- Configuración ---
void setColor(Uint8 r, Uint8 g, Uint8 b);
void setColor(Color color);
void setType(FadeType type) { type_ = type; }
void setMode(FadeMode mode) { mode_ = mode; }
void setPostDuration(int value) { post_duration_ = value; }