struct property

StructType<Image> struct
final

Describes the raw memory layout, construction, and pointer representation of this struct type.

Implementation

static final StructType<Image> struct = ._builtin(
  factory: Image.new,
  layout: .aligned<ImageField>({
    .data:    RPointer(RVoid()), // Image raw data
    .width:   RInt(), // Image base width
    .height:  RInt(), // Image base height
    .mipmaps: RInt(), // Mipmap levels, 1 by default
    .format:  RInt(), // Data format (PixelFormat type)
  }),
);