1mod camera_helper;
15mod common;
16mod field_compute_pipeline;
17mod imgui_renderer;
18mod patch;
19mod renderer;
20mod simulator;
21mod slice_viewer;
22mod sound_sources;
23mod trans_viewer;
24mod update_flag;
25mod viewer_settings;
26
27pub use simulator::Simulator;
28pub use viewer_settings::ViewerSettings;
29
30pub use renderer::available_gpus;
31
32pub type Vector2 = cgmath::Vector2<f32>;
33pub type Vector3 = cgmath::Vector3<f32>;
34pub type Vector4 = cgmath::Vector4<f32>;
35pub type Quaternion = cgmath::Quaternion<f32>;
36pub type Matrix3 = cgmath::Matrix3<f32>;
37pub type Matrix4 = cgmath::Matrix4<f32>;
38
39#[cfg(feature = "use_meter")]
40pub(crate) const SCALE: f32 = 1e-3;
41#[cfg(not(feature = "use_meter"))]
42pub(crate) const SCALE: f32 = 1.;
43
44#[cfg(feature = "left_handed")]
45pub(crate) const ZPARITY: f32 = -1.;
46#[cfg(not(feature = "left_handed"))]
47pub(crate) const ZPARITY: f32 = 1.;