Struct chariot_slp::SlpShapeHeader [] [src]

pub struct SlpShapeHeader {
    pub shape_data_offsets: u32,
    pub shape_outline_offset: u32,
    pub palette_offset: u32,
    pub properties: u32,
    pub width: u32,
    pub height: u32,
    pub center_x: i32,
    pub center_y: i32,
}

A 32-byte struct containing frame metadata.

One of these will exists for every frame in an SlpFile.

Fields

Pointer to an array of offsets.

Each offset defines the position of the first command of a row.

The first offset in this array is the first drawing command for the image.

Pointer to an array of u16 pairs used to indicate padding.

Methods

impl SlpShapeHeader
[src]

Trait Implementations

impl Debug for SlpShapeHeader
[src]

Formats the value using the given formatter.