Files
biomed/font.h
2026-02-12 10:51:02 +01:00

21 lines
336 B
C

#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);
};