mln_engine/camera/mode.rs
1/// We can choose to constrain the map both horizontally or vertically, only
2/// vertically e.g. while panning, or screen to the specified bounds.
3#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
4#[repr(u32)]
5pub enum ConstrainMode {
6 None,
7 #[default]
8 HeightOnly,
9 WidthAndHeight,
10 Screen,
11}
12
13/// Satisfies embedding platforms that requires the viewport coordinate
14/// systems to be set according to its standards.
15#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
16#[repr(u32)]
17pub enum ViewportMode {
18 #[default]
19 Default,
20 FlippedY,
21}