pub struct Frame<'a> { /* private fields */ }Expand description
Borrowed per-frame read-only state (viewport, ground, tile projection).
Implementations§
Source§impl<'a> Frame<'a>
impl<'a> Frame<'a>
pub fn info(&self) -> FrameInfo
pub fn view(&self) -> View<'a>
pub fn tile_projection( &self, tile_id: TileId, transform: TileTransform, ) -> Result<ProjectionUbo>
pub fn ground_height(&self, tile_id: TileId, x: f32, y: f32) -> f32
pub fn ground_depth_texture(&self) -> Option<Texture>
Sourcepub fn collision_shapes(
&self,
) -> impl ExactSizeIterator<Item = CollisionShape> + 'a
pub fn collision_shapes( &self, ) -> impl ExactSizeIterator<Item = CollisionShape> + 'a
The shapes the frame’s placement tested for its labels and icons, in
the order it tested them. Empty unless a layer the frame draws reads
them (Evaluation::reads_collision_shapes).
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Frame<'a>
impl<'a> !Send for Frame<'a>
impl<'a> !Sync for Frame<'a>
impl<'a> !UnwindSafe for Frame<'a>
impl<'a> Forget for Frame<'a>
impl<'a> Freeze for Frame<'a>where
&'a dyn FrameBackend: Freeze,
impl<'a> Move for Frame<'a>
impl<'a> Unpin for Frame<'a>where
&'a dyn FrameBackend: Unpin,
impl<'a> UnsafeUnpin for Frame<'a>where
&'a dyn FrameBackend: UnsafeUnpin,
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