bit more tweaking, need to get the entity component running through the render function now
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user