Add Viewer

This commit is contained in:
Hanno Braun 2025-03-28 18:28:16 +01:00
parent a673201c4b
commit 538e65368f
2 changed files with 4 additions and 1 deletions

View File

@ -18,6 +18,9 @@ use crate::{
window::Window,
};
/// # Fornjot model viewer
pub struct Viewer {}
/// # Display the provided mesh in a window that processes input
pub fn display(tri_mesh: TriMesh, invert_zoom: bool) -> Result<(), Error> {
let event_loop = EventLoop::new()?;

View File

@ -16,6 +16,6 @@ mod input;
mod window;
pub use self::{
display::{Error, display},
display::{Error, Viewer, display},
graphics::RendererInitError,
};