#![allow(clippy::result_large_err)]
#![allow(clippy::too_many_arguments)]
#[cfg(feature = "dim2")]
pub extern crate nexus2d as nexus;
#[cfg(feature = "dim3")]
pub extern crate nexus3d as nexus;
#[cfg(feature = "dim2")]
pub extern crate rapier2d as rapier;
#[cfg(feature = "dim3")]
pub extern crate rapier3d as rapier;
mod backend;
mod graphics;
mod ui;
pub mod viewer;
pub use backend::BackendType;
#[cfg(feature = "dim3")]
pub use graphics::RenderMaterial;
pub use viewer::{NexusViewer, UiState};
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
pub enum RunState {
Running,
Paused,
Step,
}
#[derive(Copy, Clone)]
pub struct UiSections {
pub show_examples: bool,
pub show_settings: bool,
pub show_performance: bool,
}
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
pub enum DemoKind {
Rbd,
}
pub(crate) enum Transition {
Quit,
Switch,
}