- Canvis en el format de la paleta i en el volcat a textura de SDL.

This commit is contained in:
2024-02-12 14:23:21 +01:00
parent 19df09dddc
commit e1518cf76f
2 changed files with 17 additions and 14 deletions

View File

@@ -1,10 +1,11 @@
#pragma once
#include <SDL2/SDL.h>
struct Color {
Uint8 r;
Uint8 g;
Uint8 b;
union Color {
struct {
uint8_t b, g, r, a;
};
uint32_t hex;
};
typedef Uint8* JD8_Surface;