diff --git a/src/rendering/selection_box.rs b/src/rendering/selection_box.rs index 4871bf2..7d757f8 100644 --- a/src/rendering/selection_box.rs +++ b/src/rendering/selection_box.rs @@ -1,11 +1,13 @@ use shipyard::{View, IntoIter, NonSendSync, UniqueViewMut}; +use glium::Surface; use crate::{ - player::MainPlayer, world::raycast::LookingAtBlock, camera::Camera }; use super::RenderTarget; +const CUBE_VERTICES: &[f32] = &[0.0]; + //wip pub fn render_selection_box( lookat: View, @@ -13,6 +15,17 @@ pub fn render_selection_box( mut target: NonSendSync>, ) { for lookat in lookat.iter() { - + // target.0.draw( + // &mesh.vertex_buffer, + // &mesh.index_buffer, + // &program.0, + // &uniform! { + // position_offset: world_position.to_array(), + // view: view, + // perspective: perspective, + // tex: texture_sampler, + // }, + // &draw_parameters + // ).unwrap(); } }