[][src]Struct rask_engine::resources::Texture

pub struct Texture { /* fields omitted */ }

Implementations

impl Texture[src]

pub fn form_raw_parts(
    raw_data: Vec<u8>,
    width: u32,
    height: u32,
    color_type: ColorType
) -> Self
[src]

pub fn from_dynamic_image(image: DynamicImage) -> Self[src]

pub fn from_memory(image: &[u8]) -> Result<Self, EngineError>[src]

pub fn dimension(&self) -> (u32, u32)[src]

pub fn width(&self) -> u32[src]

pub fn height(&self) -> u32[src]

pub fn color_type(&self) -> ColorType[src]

pub fn raw(&self) -> &[u8][src]

pub fn raw_mut(&mut self) -> &mut [u8][src]

Trait Implementations

impl Clone for Texture[src]

impl Debug for Texture[src]

impl GetStore<Texture> for ResourceTable[src]

Auto Trait Implementations

impl RefUnwindSafe for Texture

impl Send for Texture

impl Sync for Texture

impl Unpin for Texture

impl UnwindSafe for Texture

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<S, T> Collide<[T]> for S where
    T: Collide<S>, 
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Resource for T where
    T: Any + Send + Sync

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.