witchcraft_renderer/types/
mod.rs

1pub mod camera;
2pub mod instance;
3pub mod model;
4pub mod pipeline;
5pub mod renderer;
6pub mod texture;
7pub use camera::*;
8pub use instance::*;
9pub use model::*;
10pub use pipeline::*;
11pub use renderer::*;
12pub use texture::*;
13
14/// A type which gives access to a certain window.
15/// # Fields
16/// - `window` : a handle to the actual window
17/// - `event_loop` : a proxy to the event loop. This needs to be a proxy because
18/// winit::event_loop_proxy cannot be shared between threads. Used to wake up the
19/// actual event loop from another thread.
20pub struct Window {
21    pub window: winit::window::Window,
22    pub event_loop: winit::event_loop::EventLoopProxy<()>,
23}