[][src]Struct pixel_engine_backend::decals::Decal

pub struct Decal {
    pub size: (u32, u32),
    pub uv_scale: (f32, f32),
    // some fields omitted
}

Fields

size: (u32, u32)uv_scale: (f32, f32)

Implementations

impl Decal[src]

pub fn create(
    ctx: &mut Context,
    sprite: (&[u8], (u32, u32))
) -> (Self, CommandBuffer)
[src]

pub fn destroy(self, ctx: &mut Context)[src]

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

Trait Implementations

impl Debug 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, 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.