- Migrate from set_global/get_global to ctx_set/ctx_get - Replace if-else chains with match() expressions - Update inline pointer handling patterns - Improve GfxWorld and asset parsing structures - Clean up redundant code across 60+ definition files Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
34 lines
545 B
Plaintext
34 lines
545 B
Plaintext
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);
|
|
}
|