pub struct MapOverview {
pub world_bounds: Aabb,
pub thumbnails: Vec<MapThumbnail>,
pub camera_pos_normalized: Vec2,
pub zoom: f32,
pub selected_level_id: Option<u64>,
pub hovered_level_id: Option<u64>,
pub filter_state: Option<StreamingState>,
pub show_labels: bool,
pub show_memory: bool,
}Fields§
§world_bounds: Aabb§thumbnails: Vec<MapThumbnail>§camera_pos_normalized: Vec2§zoom: f32§selected_level_id: Option<u64>§hovered_level_id: Option<u64>§filter_state: Option<StreamingState>§show_labels: bool§show_memory: boolImplementations§
Source§impl MapOverview
impl MapOverview
pub fn new(world_bounds: Aabb) -> Self
pub fn world_to_map_uv(&self, world_pos: Vec3) -> Vec2
pub fn map_uv_to_world(&self, uv: Vec2) -> Vec3
pub fn update_thumbnails(&mut self, levels: &[StreamingLevel])
pub fn set_camera_position(&mut self, world_pos: Vec3)
pub fn levels_at_map_uv(&self, uv: Vec2) -> Vec<u64>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MapOverview
impl RefUnwindSafe for MapOverview
impl Send for MapOverview
impl Sync for MapOverview
impl Unpin for MapOverview
impl UnsafeUnpin for MapOverview
impl UnwindSafe for MapOverview
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.