Struct rustracer::render::FlatRenderer
source · pub struct FlatRenderer<'a> {
world: &'a World,
bg_color: Color,
}
Expand description
A flat renderer.
This renderer is mostly useful for debugging purposes, as it is fast, but it does not take into account light reflection and shadows.
Fields§
§world: &'a World
A world instance.
bg_color: Color
Background color (usually BLACK
).
Implementations§
source§impl<'a> FlatRenderer<'a>
impl<'a> FlatRenderer<'a>
sourcepub fn new(world: &'a World, bg_color: Color) -> Self
pub fn new(world: &'a World, bg_color: Color) -> Self
Create a new FlatRenderer
renderer.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for FlatRenderer<'a>
impl<'a> Send for FlatRenderer<'a>
impl<'a> Sync for FlatRenderer<'a>
impl<'a> Unpin for FlatRenderer<'a>
impl<'a> !UnwindSafe for FlatRenderer<'a>
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