XPlor/definitions/cod/glyph.xscript

34 lines
545 B
Plaintext
Raw Normal View History

type glyph [display="Glyph"]
{
u16 letter;
ui("letter", "Letter");
i8 x0;
ui("x0", "X0");
i8 y0;
ui("y0", "Y0");
i8 dx;
ui("dx", "DX");
i8 pixel_width;
ui("pixel_width", "Pixel Width");
i8 pixel_height;
ui("pixel_height", "Pixel Height");
i8 pitch;
ui("pitch", "Pitch");
// UV coordinates (4 floats = 16 bytes)
// Read as raw bytes since we don't have float type yet
uv_coords = read(16);
ui("uv_coords", "UV Coords");
// Padding to align to 32 bytes total (8 + 16 = 24, need 8 more)
skip(8);
}