XPlor/libs/xassets/font.h
2025-08-17 13:14:17 -04:00

31 lines
454 B
C

#ifndef FONT_H
#define FONT_H
#include "xmaterial.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;
XMaterial *material;
XMaterial *glowMaterial;
XGlyph *glyphs;
};
#endif // FONT_H