XPlor/libs/assets/font.h
2025-06-07 11:20:47 -04:00

31 lines
450 B
C

#ifndef FONT_H
#define FONT_H
#include "material.h"
struct Glyph
{
unsigned __int16 letter;
char x0;
char y0;
unsigned __int8 dx;
unsigned __int8 pixelWidth;
unsigned __int8 pixelHeight;
float s0;
float t0;
float s1;
float t1;
};
struct GameFont
{
const char *fontName;
int pixelHeight;
int glyphCount;
Material *material;
Material *glowMaterial;
Glyph *glyphs;
};
#endif // FONT_H