Trait gfx_scene::AbstractScene
[−]
[src]
pub trait AbstractScene<R: Resources> { type ViewInfo: ToDepth; type Material; type Camera; type Status; fn draw<H, S>(
&self,
_: &mut H,
_: &Self::Camera,
_: &mut S
) -> Result<Self::Status, Error>
where
H: AbstractPhase<R, Self::Material, Self::ViewInfo>,
S: Stream<R>; }
Abstract scene that can be drawn into something.
Associated Types
type ViewInfo: ToDepth
A type of the view information.
type Material
A type of the material.
type Camera
A type of the camera.
type Status
the status information from the render results this can be used to communicate meta from the render
Required Methods
fn draw<H, S>(
&self,
_: &mut H,
_: &Self::Camera,
_: &mut S
) -> Result<Self::Status, Error> where
H: AbstractPhase<R, Self::Material, Self::ViewInfo>,
S: Stream<R>,
&self,
_: &mut H,
_: &Self::Camera,
_: &mut S
) -> Result<Self::Status, Error> where
H: AbstractPhase<R, Self::Material, Self::ViewInfo>,
S: Stream<R>,
Draw the contents of the scene with a specific phase into a stream.