XPlor/definitions/cod/glyph.xscript
njohnson 7b1f5d34a1 Consolidate XScript definitions with byte order inheritance
- Volition VPP: Unified BE/LE types using inheritance pattern
- THQA PAK: Child types now inherit byte order from parent
- Various XScript definition updates and fixes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 16:08:46 -05:00

18 lines
426 B
Plaintext

type glyph ui("Glyph")
{
u16 letter ui("Letter");
i8 x0 ui("X0");
i8 y0 ui("Y0");
i8 dx ui("DX");
i8 pixel_width ui("Pixel Width");
i8 pixel_height ui("Pixel Height");
i8 pitch ui("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");
// Padding to align to 32 bytes total (8 + 16 = 24, need 8 more)
skip(8);
}