[][src]Struct rg3d::scene::sprite::Sprite

pub struct Sprite { /* fields omitted */ }

Methods

impl Sprite[src]

pub fn set_size(&mut self, size: f32)[src]

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

pub fn set_color(&mut self, color: Color)[src]

pub fn get_color(&self) -> Color[src]

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

Sets rotation around "look" axis in radians.

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

pub fn set_texture(&mut self, texture: Arc<Mutex<Texture>>)[src]

pub fn get_texture(&self) -> Option<Arc<Mutex<Texture>>>[src]

Trait Implementations

impl AsBase for Sprite[src]

impl Clone for Sprite[src]

impl Default for Sprite[src]

impl Visit for Sprite[src]

Auto Trait Implementations

impl !RefUnwindSafe for Sprite

impl Send for Sprite

impl !Sync for Sprite

impl Unpin for Sprite

impl !UnwindSafe for Sprite

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Visit for T where
    T: FieldData + 'static, 
[src]