XPlor/libs/xassets/font.h

31 lines
454 B
C
Raw Normal View History

2025-06-07 11:20:47 -04:00
#ifndef FONT_H
#define FONT_H
2025-08-17 13:14:17 -04:00
#include "xmaterial.h"
2025-06-07 11:20:47 -04:00
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;
2025-08-17 13:14:17 -04:00
XMaterial *material;
XMaterial *glowMaterial;
XGlyph *glyphs;
2025-06-07 11:20:47 -04:00
};
#endif // FONT_H