pub struct GlViewport {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
}Expand description
The viewport rectangle, in framebuffer pixels.
Stored as signed values because GL accepts a negative origin for flipped-coordinate passes even though the default is the origin.
Fields§
§x: i32The left edge in framebuffer pixels.
y: i32The bottom edge in framebuffer pixels.
width: i32The width in framebuffer pixels.
height: i32The height in framebuffer pixels.
Implementations§
Source§impl GlViewport
impl GlViewport
Trait Implementations§
Source§impl Clone for GlViewport
impl Clone for GlViewport
impl Copy for GlViewport
Source§impl Debug for GlViewport
impl Debug for GlViewport
Source§impl PartialEq for GlViewport
impl PartialEq for GlViewport
impl StructuralPartialEq for GlViewport
Auto Trait Implementations§
impl Freeze for GlViewport
impl RefUnwindSafe for GlViewport
impl Send for GlViewport
impl Sync for GlViewport
impl Unpin for GlViewport
impl UnsafeUnpin for GlViewport
impl UnwindSafe for GlViewport
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