[−][src]Struct olc_pixel_game_engine::Decal
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,