Minor cleanup
parent
ed03e8a523
commit
e2f9d427b5
|
@ -30,7 +30,6 @@ async fn run(mut game: game::Game) -> Result<()> {
|
||||||
event_loop.run(move |event, _, control_flow| {
|
event_loop.run(move |event, _, control_flow| {
|
||||||
match event {
|
match event {
|
||||||
Event::RedrawRequested(window_id) if window_id == gpu.window().id() => {
|
Event::RedrawRequested(window_id) if window_id == gpu.window().id() => {
|
||||||
gpu.update();
|
|
||||||
game.update();
|
game.update();
|
||||||
match gpu.render(&game) {
|
match gpu.render(&game) {
|
||||||
Ok(_) => {}
|
Ok(_) => {}
|
||||||
|
|
|
@ -194,8 +194,6 @@ impl GPUState {
|
||||||
self.update_starfield_buffer(game)
|
self.update_starfield_buffer(game)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn update(&mut self) {}
|
|
||||||
|
|
||||||
/// Make a SpriteInstance for each of the game's visible sprites.
|
/// Make a SpriteInstance for each of the game's visible sprites.
|
||||||
/// Will panic if SPRITE_INSTANCE_LIMIT is exceeded.
|
/// Will panic if SPRITE_INSTANCE_LIMIT is exceeded.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue