refactor 3

This commit is contained in:
2019-07-30 15:24:32 +02:00
parent 0f837ce65e
commit ba3417a058
2 changed files with 14 additions and 15 deletions

View File

@@ -55,10 +55,6 @@ pub struct LinePoint {
vulkano::impl_vertex!(LinePoint, position);
pub trait Game {
fn game_start(self: &mut Self, game_data: &mut GameData);
fn update(self: &mut Self, game_data: &mut GameData);
/// Returns true if event should be ignored by the vulkan handler
fn on_window_event(self: &mut Self, event: &Event);
}
@@ -352,8 +348,6 @@ impl VulkanRenderer {
Err(err) => panic!("{:?}", err)
};
game.update(&mut self.game_data);
let mut cbb = AutoCommandBufferBuilder::primary_one_time_submit(self.device.clone(), self.queue.family()).unwrap()
// Before we can draw, we have to *enter a render pass*. There are two methods to do
// this: `draw_inline` and `draw_secondary`. The latter is a bit more advanced and is