Skip to main content

polyscope_structures/floating/
mod.rs

1//! Floating quantities — screen-space data not attached to any structure.
2//!
3//! Floating quantities include images (scalar, color, depth-composited)
4//! that are displayed in the UI as standalone visualizations.
5
6mod color_image;
7mod render_image;
8mod scalar_image;
9
10pub use color_image::*;
11pub use render_image::*;
12pub use scalar_image::*;
13
14/// Image origin convention.
15#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
16pub enum ImageOrigin {
17    /// Image row 0 is the top row (standard screen convention).
18    #[default]
19    UpperLeft,
20    /// Image row 0 is the bottom row (OpenGL convention).
21    LowerLeft,
22}