[][src]Struct a2d::Instance

#[repr(C)]pub struct Instance { /* fields omitted */ }

Instance data. Data passed to the GPU per sprite in a sprite batch.


impl Instance[src]

pub fn builder() -> InstanceBuilder[src]

pub fn src(&self) -> Rect[src]

pub fn set_src<R: Into<Rect>>(&mut self, rect: R)[src]

pub fn dest(&self) -> Rect[src]

pub fn set_dest<R: Into<Rect>>(&mut self, rect: R)[src]

pub fn rotation(&self) -> f32[src]

pub fn set_rotation(&mut self, rotate: f32)[src]

pub fn set_color_factor<C: Into<Color>>(&mut self, color_factor: C)[src]

Trait Implementations

impl Clone for Instance[src]

impl Copy for Instance[src]

impl Debug for Instance[src]

impl Pod for Instance[src]

impl Zeroable for Instance[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.