[][src]Struct olc_pixel_game_engine::Decal

pub struct Decal { /* fields omitted */ }

Mirror of olc::Decal. A GPU resident storage of an olc::Sprite.

Implementations

impl Decal[src]

pub fn empty() -> Self[src]

Creates a new empty decal. This can be used for initialisation insted of using Option.

pub fn new(sprite: Sprite) -> Self[src]

Creates a new decal from a sprite.

pub fn id(&self) -> i32[src]

Returns id of the decal.

pub fn scale(&self) -> Vf2d[src]

Returns scale of the decal.

pub fn sprite(&self) -> &Sprite[src]

Returns sprite reference.

Trait Implementations

impl Debug for Decal[src]

impl Display for Decal[src]

impl Drop for Decal[src]

Auto Trait Implementations

impl RefUnwindSafe for Decal

impl !Send for Decal

impl !Sync for Decal

impl Unpin for Decal

impl UnwindSafe for Decal

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> From<T> for T[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.