Added updating
This commit is contained in:
parent
354cb8718d
commit
78d0f59cc1
@ -46,6 +46,7 @@ impl<'a> ApplicationHandler for StateApplication<'a>{
|
|||||||
self.state.as_mut().unwrap().resize(physical_size);
|
self.state.as_mut().unwrap().resize(physical_size);
|
||||||
}
|
}
|
||||||
WindowEvent::RedrawRequested => {
|
WindowEvent::RedrawRequested => {
|
||||||
|
self.state.as_mut().unwrap().update();
|
||||||
self.state.as_mut().unwrap().render().unwrap();
|
self.state.as_mut().unwrap().render().unwrap();
|
||||||
}
|
}
|
||||||
WindowEvent::KeyboardInput { .. } => {
|
WindowEvent::KeyboardInput { .. } => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user