pub struct Viewport {
pub width: u32,
pub height: u32,
pub clear_color: Color,
}Expand description
A logical render area (pixel dimensions + clear color).
This is renderer-agnostic: it can back a software framebuffer, and later map to a real GPU/window viewport.
Fields§
§width: u32§height: u32§clear_color: ColorImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Viewport
impl RefUnwindSafe for Viewport
impl Send for Viewport
impl Sync for Viewport
impl Unpin for Viewport
impl UnsafeUnpin for Viewport
impl UnwindSafe for Viewport
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