mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-25 16:28:42 -06:00
wip
This commit is contained in:
parent
3b36990d32
commit
b4462a0176
|
@ -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<LookingAtBlock>,
|
||||
|
@ -13,6 +15,17 @@ pub fn render_selection_box(
|
|||
mut target: NonSendSync<UniqueViewMut<RenderTarget>>,
|
||||
) {
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue