mirage-engine 0.1.1

Mirage, an immediate-mode 3D engine for simple games on desktop and the browser
Documentation
//! The machine a game poses a draw with: the states it moves between, what
//! each of them plays, and how far along that is.
//!
//! A game writes its states as a fieldless enum under [`AnimationStates`],
//! which states what each state plays — a clip looping, a clip once, two
//! blended, or one a value scrubs — and where the machine goes from there.
//! [`ctx.animate`](crate::TickContext::animate) runs an [`Animator`] of
//! those states against the game's own input, and
//! [`Instance::posed`](crate::mesh::Instance::posed) draws a mesh in the
//! pose it holds. No clip length and no time of a game's own crosses either
//! call: a state reads [`Progress`] and states a [`Transition`].

pub use animator::Animator;
pub use motion::Motion;
pub(crate) use motion::Timed;
pub(crate) use posed::Running;
pub use progress::Progress;
pub use states::{AnimationStates, Transition};

mod animator;
mod motion;
mod posed;
mod progress;
mod states;