[−][src]Struct rask_engine::resources::Character
Implementations
impl Character
[src]
pub fn new<R: Read>(
texture: DynamicImage,
skeleton: Skeleton,
atlas: Atlas<R>
) -> Result<Self, EngineError>
[src]
texture: DynamicImage,
skeleton: Skeleton,
atlas: Atlas<R>
) -> Result<Self, EngineError>
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]
texture: &[u8],
animation: &[u8],
atlas: &[u8]
) -> Result<Self, EngineError>
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]
&self,
time: f32,
anim_name: &str
) -> Result<AnimationStates<'_>, EngineError>
Trait Implementations
impl<'a> TryFrom<ResourceData<'a>> for Character
[src]
type Error = EngineError
The type returned in the event of a conversion error.
fn try_from(chr_data: ResourceData<'a>) -> Result<Self, Self::Error>
[src]
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]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
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<S, T> Collide<[T]> for S where
T: Collide<S>,
[src]
T: Collide<S>,
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
const ALIGN: usize
type Init = T
The type for initializers.
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)
impl<T> Resource for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
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>,