pub fn new(space: URef<Space>) -> Self {
        let space_borrowed = space.borrow_mut();

        let todo = SpaceRendererTodo::default();
        let todo_rc = Arc::new(Mutex::new(todo));
        space_borrowed.listen(TodoListener(Arc::downgrade(&todo_rc)));

        Self {
            space,
            todo: todo_rc,
            block_triangulations: Vec::new(),
            block_versioning: Vec::new(),
            block_version_counter: 0,
            block_texture: None,
            light_texture: None,
            chunks: HashMap::new(),
            chunk_chart: ChunkChart::new(0.0),
            debug_chunk_boxes_tess: None,
            chunks_were_missing: true,
        }
    }
/// Constructs a [`SpaceRenderer`] for the given [`Space`].
///
/// Note that the actual geometry for the [`Space`] will be computed over several
/// frames after construction. There is not currently a specific way to wait for
/// completion.
Constructs a [`SpaceRenderer`] for the given [`Space`].
Note that the actual geometry for the [`Space`] will be computed over several
frames after construction. There is not currently a specific way to wait for
completion.
Constructs a [ ` SpaceRenderer ` ] for the given [ ` Space ` ] . Note that the actual geometry for the [ ` Space ` ] will be computed over several frames after construction . There is not currently a specific way to wait for completion .
pub fn new(space: URef<Space>) -> Self {
        let space_borrowed = space.borrow_mut();
        let todo = SpaceRendererTodo::default();
        let todo_rc = Arc::new(Mutex::new(todo));
        space_borrowed.listen(TodoListener(Arc::downgrade(&todo_rc)));
        Self {
            space,
            todo: todo_rc,
            block_triangulations: Vec::new(),
            block_versioning: Vec::new(),
            block_version_counter: 0,
            block_texture: None,
            light_texture: None,
            chunks: HashMap::new(),
            chunk_chart: ChunkChart::new(0.0),
            debug_chunk_boxes_tess: None,
            chunks_were_missing: true,
        }
    }
pub fn new ( space : URef < Space > ) -> Self { let space_borrowed = space . borrow_mut ( ) ; let todo = SpaceRendererTodo :: default ( ) ; let todo_rc = Arc :: new ( Mutex :: new ( todo ) ) ; space_borrowed . listen ( TodoListener ( Arc :: downgrade ( & todo_rc ) ) ) ; Self { space , todo : todo_rc , block_triangulations : Vec :: new ( ) , block_versioning : Vec :: new ( ) , block_version_counter : 0 , block_texture : None , light_texture : None , chunks : HashMap :: new ( ) , chunk_chart : ChunkChart :: new ( 0.0 ) , debug_chunk_boxes_tess : None , chunks_were_missing : true , } }
Constructs a [`SpaceRenderer`] for the given [`Space`].
Constructs a [ ` SpaceRenderer ` ] for the given [ ` Space ` ] .
space
URef<Space>