[][src]Struct rask_engine::resources::character::Character

pub struct Character { /* fields omitted */ }

Implementations

impl Character[src]

pub fn new<R: Read>(
    texture: DynamicImage,
    skeleton: Skeleton,
    atlas: Atlas<R>
) -> Result<Self, EngineError>
[src]

pub fn from_parts(skeleton: Skeleton, atlas: HashMap<u64, Texture>) -> Self[src]

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

pub fn skeleton(&self) -> &Skeleton[src]

pub fn atlas(&self) -> &HashMap<u64, Texture>[src]

pub fn skeleton_mut(&mut self) -> &mut Skeleton[src]

pub fn atlas_mut(&mut self) -> &mut HashMap<u64, Texture>[src]

pub fn interpolate(
    &self,
    time: f32,
    anim_name: &str
) -> Result<AnimationStates<'_>, EngineError>
[src]

Trait Implementations

impl<'a> TryFrom<ResourceData<'a>> for Character[src]

type Error = EngineError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Character

impl Send for Character

impl Sync for Character

impl Unpin for Character

impl UnwindSafe for Character

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