viewport-lib 0.4.0

3D viewport rendering library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// The current input mode determines which bindings are active.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[non_exhaustive]
pub enum InputMode {
    /// Default mode: orbit/pan/zoom, object selection, shortcuts.
    Normal,
    /// WASD fly-through camera mode.
    FlyMode,
    /// Keyboard-driven object manipulation (G/R/S + axis constraint).
    Manipulating,
}