Struct glitter::types::Viewport [] [src]

pub struct Viewport {
    pub x: u32,
    pub y: u32,
    pub width: u32,
    pub height: u32,
}

An OpenGL viewport, with an origin and size, with integer components.

Fields

The X coordinate of the viewport's origin

The Y coordinate of the viewport's origin

The viewport's width

The viewport's height

Methods

impl Viewport
[src]

Create a new viewport, with the given X and Y coordinates as the origin and the given width and height as the size.

Trait Implementations

impl Clone for Viewport
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Viewport
[src]