Struct amethyst_renderer::Scene []

pub struct Scene { /* fields omitted */ }

Collection of lights and meshes to render.

Methods

impl Scene
[src]

Adds a light source to the scene.

Example

let mut scene = Scene::default();
scene.add_light(PointLight::default());

Adds a mesh to the scene.

Adds a camera to the scene.

Set ambient color for the scene

Get the ambient color for the scene

Get all lights on scene

Iterates through all stored lights in parallel.

Iterates through all stored lights in parallel in chunks.

Iterates through all stored models in parallel.

Iterates through all stored models in parallel in chunks.

Returns the active camera in the scene.

TODO: Render to multiple viewports with possibly different cameras.

Remove all objects from Scene

Trait Implementations

impl Clone for Scene
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Scene
[src]

Formats the value using the given formatter.

impl Default for Scene
[src]

Returns the "default value" for a type. Read more

impl PartialEq for Scene
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.