bit more tweaking, need to get the entity component running through the render function now

This commit is contained in:
2021-02-01 00:19:19 -08:00
parent f933fe8312
commit a38c8e3f36
2 changed files with 19 additions and 11 deletions

View File

@@ -78,8 +78,16 @@ impl Renderer {
}
}
#[system(for_each)]
pub fn render_test(pos: &mut Position, vel: &Velocity) {
//pos.x += vel.dx * time.elapsed_seconds;
//pos.y += vel.dy * time.elapsed_seconds;
}
impl Renderer {
pub fn create_buffer(device: &wgpu::Device,
indices: Vec<u32>,
vertices: Vec<Vertex>) -> (Rc<Buffer>, Rc<Buffer>) {
@@ -483,11 +491,7 @@ impl Renderer {
}
}
//
// #[system(for_each)]
// pub fn render_test(pos: &mut Position, vel: &Velocity) {
// //pos.x += vel.dx * time.elapsed_seconds;
// //pos.y += vel.dy * time.elapsed_seconds;
// }
pub fn render(
&mut self,