7#define EXPORT __declspec(dllexport)
31 Color(Uint8 r=0, Uint8 g=0, Uint8 b=0, Uint8 a=255) {
43 EXPORT
Color(
const std::string c);
49 EXPORT
operator SDL_Color() {
return color; }
55 EXPORT Uint8
GetR()
const {
return color.r; }
61 EXPORT Uint8
GetG()
const {
return color.g; }
67 EXPORT Uint8
GetB()
const {
return color.b; }
73 EXPORT Uint8
GetA()
const {
return color.a; }
79 EXPORT
void SetR(Uint8 r) { color.r = r; }
85 EXPORT
void SetG(Uint8 g) { color.g = g; }
91 EXPORT
void SetB(Uint8 b) { color.b = b; }
97 EXPORT
void SetA(Uint8 a) { color.a = a; }
Encapsula un color.
Definition sdl_color.h:18
EXPORT void SetA(Uint8 a)
Asigna un nuevo valor a la componente alfa.
Definition sdl_color.h:97
EXPORT void SetB(Uint8 b)
Asigna un nuevo valor a la componente azul.
Definition sdl_color.h:91
Color(Uint8 r=0, Uint8 g=0, Uint8 b=0, Uint8 a=255)
Constructor a partir de componentes RGBA en enteros sin signo de 8 bits.
Definition sdl_color.h:31
EXPORT void SetG(Uint8 g)
Asigna un nuevo valor a la componente verde.
Definition sdl_color.h:85
EXPORT Uint8 GetG() const
Obtiene la componente verde.
Definition sdl_color.h:61
EXPORT Uint8 GetA() const
Obtiene la componente alfa.
Definition sdl_color.h:73
EXPORT void SetR(Uint8 r)
Asigna un nuevo valor a la componente roja.
Definition sdl_color.h:79
EXPORT Uint8 GetB() const
Obtiene la componente azul.
Definition sdl_color.h:67
EXPORT Uint8 GetR() const
Obtiene la componente roja.
Definition sdl_color.h:55
Espacio con nombre para el wrapper de SDL2.
Definition sdl_music.h:14