Skip to main content

Renderer

Trait Renderer 

Source
pub trait Renderer {
    // Required method
    fn render(&mut self, graph: &SceneGraph, options: &RenderOptions) -> Image;
}
Expand description

Draws a scene graph into an image.

Required Methods§

Source

fn render(&mut self, graph: &SceneGraph, options: &RenderOptions) -> Image

Draws the current state of graph.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§