Struct three_d::renderer::Viewport [−][src]
Expand description
Defines the part of the screen/render target that is rendered to.
Fields
x: i32
The distance in pixels from the left edge of the screen/render target.
y: i32
The distance in pixels from the top edge of the screen/render target.
width: u32
The width of the viewport.
height: u32
The height of the viewport.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Viewport
impl UnwindSafe for Viewport
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more