Struct adi_screen::Sprite [] [src]

#[must_use]
pub struct Sprite(_);

Sprite represents anything that is rendered onto the screen.

Methods

impl Sprite
[src]

Create a sprite. window is the window. v is sprite's vertices. Format: x, y, z, 1.0, r, g, b, a, Format: x, y, z, 1.0, texture coordinate x, texture coordinate y, 1.0, 1.0, style is the Style that will initially be applied to each of the sprite's instances. instances is the initial number of instances this sprite should have.

Change the style of self to style for instance i.

Change the vertices of self to v.