mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-15 23:38:27 +00:00
Add Viewer
This commit is contained in:
parent
a673201c4b
commit
538e65368f
@ -18,6 +18,9 @@ use crate::{
|
|||||||
window::Window,
|
window::Window,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// # Fornjot model viewer
|
||||||
|
pub struct Viewer {}
|
||||||
|
|
||||||
/// # Display the provided mesh in a window that processes input
|
/// # Display the provided mesh in a window that processes input
|
||||||
pub fn display(tri_mesh: TriMesh, invert_zoom: bool) -> Result<(), Error> {
|
pub fn display(tri_mesh: TriMesh, invert_zoom: bool) -> Result<(), Error> {
|
||||||
let event_loop = EventLoop::new()?;
|
let event_loop = EventLoop::new()?;
|
||||||
|
@ -16,6 +16,6 @@ mod input;
|
|||||||
mod window;
|
mod window;
|
||||||
|
|
||||||
pub use self::{
|
pub use self::{
|
||||||
display::{Error, display},
|
display::{Error, Viewer, display},
|
||||||
graphics::RendererInitError,
|
graphics::RendererInitError,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user