Make the demo window present method take a &mut self
This commit is contained in:
parent
d090dd459b
commit
c26a443b0d
|
@ -167,7 +167,7 @@ impl Window for WindowImpl {
|
|||
Point2DI32::new(0, 0)
|
||||
}
|
||||
|
||||
fn present(&self) {}
|
||||
fn present(&mut self) {}
|
||||
|
||||
fn resource_loader(&self) -> &dyn ResourceLoader {
|
||||
&RESOURCE_LOADER
|
||||
|
|
|
@ -22,7 +22,7 @@ pub trait Window {
|
|||
fn gl_version(&self) -> GLVersion;
|
||||
fn gl_default_framebuffer(&self) -> GLuint { 0 }
|
||||
fn mouse_position(&self) -> Point2DI32;
|
||||
fn present(&self);
|
||||
fn present(&mut self);
|
||||
fn resource_loader(&self) -> &dyn ResourceLoader;
|
||||
fn create_user_event_id(&self) -> u32;
|
||||
fn push_user_event(message_type: u32, message_data: u32);
|
||||
|
|
|
@ -78,7 +78,7 @@ impl Window for WindowImpl {
|
|||
Point2DI32::new(mouse_state.x(), mouse_state.y())
|
||||
}
|
||||
|
||||
fn present(&self) {
|
||||
fn present(&mut self) {
|
||||
self.window.gl_swap_window();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue