struct property

StructType<TextureD> struct
final

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

Implementation

static final StructType<TextureD> struct = .new(
  factory: TextureD.new,
  layout: .aligned<TextureField>({
    .id:      RUnsignedInt(), // OpenGL texture id
    .width:   RInt(), // Texture base width
    .height:  RInt(), // Texture base height
    .mipmaps: RInt(), // Mipmap levels, 1 by default
    .format:  RInt(), // Data format (PixelFormat type)
  }),
);