Struct agb::display::object::ObjectAffine[][src]

pub struct ObjectAffine<'a> { /* fields omitted */ }
Expand description

The affine object, with potential for using a transformation matrix to alter how the sprite is rendered to screen.

Implementations

Commits the object to OAM such that the updated version is displayed on screen. Recommend to do this during VBlank.

Sets the x coordinate of the sprite on screen.

Sets the y coordinate of the sprite on screen.

Sets the index of the tile to use as the sprite. Potentially a temporary function.

Sets the sprite size, will read tiles in x major order to construct this.

Show the object on screen. Panics if affine matrix has not been set.

Hide the object and do not render the sprite.

Sets the affine matrix to use. Changing the affine matrix will change how the sprite is rendered.

Sets the x and y position of the object, performing casts as nessesary to fit within the bits allocated for this purpose.

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.