Struct valor::Renderer
[−]
[src]
pub struct Renderer { pub factory: Factory, pub width: u32, pub height: u32, // some fields omitted }
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
Methods
impl Renderer
[src]
fn update_views(&mut self, window: &GlWindow)
[src]
Update the output buffers based on the window width and height.
fn set_dimensions(&mut self, width: u32, height: u32)
[src]
Setter for the frame dimensions.
fn render(&mut self, scene: &mut Scene, camera: &Camera)
[src]
Traverse the scene graph and render all the nodes from the camera's perspective.