Skip to content

Commit

Permalink
Add a window camera getter
Browse files Browse the repository at this point in the history
  • Loading branch information
antonylsg committed Mar 19, 2020
1 parent 739e5ee commit aa07c44
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/window/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,11 @@ impl Window {
self.canvas.cursor_pos()
}

/// Gets a handle to the window camera.
pub fn camera(&self) -> &RefCell<ArcBall> {
&*self.camera
}

#[inline]
fn handle_events(
&mut self,
Expand Down

0 comments on commit aa07c44

Please sign in to comment.