struct property
Describes the raw memory layout, construction, and pointer representation of this struct type.
Implementation
static final StructType<FontD> struct = .new(
factory: FontD.new,
layout: .aligned<FontField>({
.baseSize: RInt(), // Base size (default chars height)
.glyphCount: RInt(), // Number of glyph characters
.glyphPadding: RInt(), // Padding around the glyph characters
.texture: RStruct(TextureD.struct), // Texture atlas containing the glyphs
.recs: RPointer(RStruct(RectangleD.struct)), // Rectangles in texture for the glyphs
.glyphs: RPointer(RStruct(GlyphInfoD.struct)), // Glyphs info data
}),
);