- First commit to gitea

This commit is contained in:
2026-02-12 10:51:02 +01:00
commit a16a5a4102
40 changed files with 10033 additions and 0 deletions

21
font.h Normal file
View File

@@ -0,0 +1,21 @@
#pragma once
#include "common.h"
struct FontChar
{
float x1, y1, x2, y2;
char w, h, xo, yo, xa;
};
struct Font
{
char lineHeight;
unsigned char bw, bh;
FontChar chars[96];
unsigned texture;
void Load(const char* filename);
void Print(int x, int y, const char* text, char color = 15);
Vector2 GetSize(const char* text);
};