three_d/
window.rs

1//!
2//! Window, event handling and context creation for easy setup.
3//! * Can be avoided fully by setting up a window, event handling etc. and creating a [Context](crate::core::Context)
4//! from a [glow](https://crates.io/crates/glow) OpenGL/WebGL context.
5//! * If full control over the window and event handling, but not the context creation, is desired, use a [WindowedContext] or [HeadlessContext].
6//! * Finally, for an easy setup, use [Window::new] or [Window::from_winit_window], the latter will provide full control over the creation of the window.
7//!
8//!
9
10#[cfg(feature = "window")]
11#[cfg_attr(docsrs, doc(feature = "window"))]
12mod winit_window;
13#[cfg(feature = "window")]
14pub use winit_window::*;
15
16#[cfg(all(feature = "headless", not(target_arch = "wasm32")))]
17#[cfg_attr(docsrs, doc(feature = "headless"))]
18mod headless;
19#[cfg(all(feature = "headless", not(target_arch = "wasm32")))]
20pub use headless::*;