From b4462a0176c678770891bf468716933d623fc30a Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Sat, 28 Jan 2023 04:26:47 +0100 Subject: [PATCH] wip --- src/rendering/selection_box.rs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) 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(); } }