test some stuff - still wip

This commit is contained in:
2025-05-25 22:41:57 +02:00
parent 429627c095
commit 78620af37a
7 changed files with 174 additions and 67 deletions

View File

@@ -9,6 +9,8 @@
#include <SDL2/SDL_ttf.h>
#include <math.h>
#define fontCount 4
typedef struct {
SDL_Texture *texture[256];
SDL_Surface *surface[256];
@@ -16,6 +18,8 @@ typedef struct {
SDL_Color color;
} BitmapFont;
extern BitmapFont fonts[fontCount];
BitmapFont
prepText(SDL_Renderer *renderer, unsigned char pxSize, const char *file, uint8_t r, uint8_t g, uint8_t b, uint8_t a);