mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-29 02:08:48 -06:00
wip
This commit is contained in:
parent
3b36990d32
commit
b4462a0176
|
@ -1,11 +1,13 @@
|
||||||
use shipyard::{View, IntoIter, NonSendSync, UniqueViewMut};
|
use shipyard::{View, IntoIter, NonSendSync, UniqueViewMut};
|
||||||
|
use glium::Surface;
|
||||||
use crate::{
|
use crate::{
|
||||||
player::MainPlayer,
|
|
||||||
world::raycast::LookingAtBlock,
|
world::raycast::LookingAtBlock,
|
||||||
camera::Camera
|
camera::Camera
|
||||||
};
|
};
|
||||||
use super::RenderTarget;
|
use super::RenderTarget;
|
||||||
|
|
||||||
|
const CUBE_VERTICES: &[f32] = &[0.0];
|
||||||
|
|
||||||
//wip
|
//wip
|
||||||
pub fn render_selection_box(
|
pub fn render_selection_box(
|
||||||
lookat: View<LookingAtBlock>,
|
lookat: View<LookingAtBlock>,
|
||||||
|
@ -13,6 +15,17 @@ pub fn render_selection_box(
|
||||||
mut target: NonSendSync<UniqueViewMut<RenderTarget>>,
|
mut target: NonSendSync<UniqueViewMut<RenderTarget>>,
|
||||||
) {
|
) {
|
||||||
for lookat in lookat.iter() {
|
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