pub struct Renderer {
pub factory: Factory,
pub width: u32,
pub height: u32,
/* private fields */
}
Expand description
Interface responsible for window creation and scene traversal for drawing.
Fields§
§factory: Factory
§width: u32
Width of the frame
height: u32
Height of the frame
Implementations§
Source§impl Renderer
impl Renderer
Sourcepub fn update_views(&mut self, window: &GlWindow)
pub fn update_views(&mut self, window: &GlWindow)
Update the output buffers based on the window width and height.
Sourcepub fn set_dimensions(&mut self, width: u32, height: u32)
pub fn set_dimensions(&mut self, width: u32, height: u32)
Setter for the frame dimensions.
Auto Trait Implementations§
impl Freeze for Renderer
impl !RefUnwindSafe for Renderer
impl !Send for Renderer
impl !Sync for Renderer
impl Unpin for Renderer
impl !UnwindSafe for Renderer
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