pub struct LSystemScene { /* private fields */ }Expand description
A generator scene driven by an L-system grammar.
Implementations§
Source§impl LSystemScene
impl LSystemScene
Sourcepub fn new(
renderer: Rc<RefCell<LineRenderer>>,
max_segments: usize,
device: &Device,
surface_format: TextureFormat,
seg3d_cap: usize,
max_coc: f32,
) -> Self
pub fn new( renderer: Rc<RefCell<LineRenderer>>, max_segments: usize, device: &Device, surface_format: TextureFormat, seg3d_cap: usize, max_coc: f32, ) -> Self
Build the scene over the shared line renderer, preallocating the draw
buffer. The space turtle’s own seg3d renderer, of seg3d_cap
instances with blur held to max_coc pixels — the tier’s caps — waits
for the first space configure. No grammar is expanded until a preset
configures one.
Auto Trait Implementations§
impl Freeze for LSystemScene
impl !RefUnwindSafe for LSystemScene
impl !Send for LSystemScene
impl !Sync for LSystemScene
impl Unpin for LSystemScene
impl UnsafeUnpin for LSystemScene
impl !UnwindSafe for LSystemScene
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