mirror of
https://github.com/hannobraun/Fornjot
synced 2025-03-03 11:35:51 +00:00
Rename window::run
to display
I think the new name better describes what the function does.
This commit is contained in:
parent
d50d3da43d
commit
9f94e316d6
@ -13,4 +13,4 @@
|
|||||||
mod run;
|
mod run;
|
||||||
mod window;
|
mod window;
|
||||||
|
|
||||||
pub use self::run::{run, Error};
|
pub use self::run::{display, Error};
|
||||||
|
@ -19,7 +19,7 @@ use winit::{
|
|||||||
use crate::window::{self, Window};
|
use crate::window::{self, Window};
|
||||||
|
|
||||||
/// Initializes a model viewer for a given model and enters its process loop.
|
/// Initializes a model viewer for a given model and enters its process loop.
|
||||||
pub fn run(mesh: Mesh<Point<3>>, invert_zoom: bool) -> Result<(), Error> {
|
pub fn display(mesh: Mesh<Point<3>>, invert_zoom: bool) -> Result<(), Error> {
|
||||||
let event_loop = EventLoop::new();
|
let event_loop = EventLoop::new();
|
||||||
let window = Window::new(&event_loop)?;
|
let window = Window::new(&event_loop)?;
|
||||||
let mut viewer = block_on(Viewer::new(&window))?;
|
let mut viewer = block_on(Viewer::new(&window))?;
|
||||||
|
@ -25,7 +25,7 @@ where
|
|||||||
if let Some(path) = args.export {
|
if let Some(path) = args.export {
|
||||||
crate::export::export(&mesh, &path)?;
|
crate::export::export(&mesh, &path)?;
|
||||||
} else {
|
} else {
|
||||||
crate::window::run(mesh, false)?;
|
crate::window::display(mesh, false)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
Reference in New Issue
Block a user