Struct gba_dvd::sprite::Obj[][src]

pub struct Obj {
    pub attr0: ObjAttr0,
    pub attr1: ObjAttr1,
    pub attr2: ObjAttr2,
    pub bounding_box: BoundingBox,
}

Fields

attr0: ObjAttr0

GBA obj attributes

attr1: ObjAttr1attr2: ObjAttr2bounding_box: BoundingBox

Bounding box used for collision

Implementations

Set sprite dimensions

Set sprite size

Set sprite shape

Move relative sprite position

Set palbank index Valid sizes: 0..=15

Set beginning tile index for sprite Valid sizes: 0..=1023=Tile Number ????

Copy all 3 attributes to ind Obj slot in OAM

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.