#[cfg(not(target_arch = "wasm32"))]
#[path = "platform/native.rs"]
mod native;
#[cfg(not(target_arch = "wasm32"))]
pub use self::native::OpenGLWindow;
#[cfg(target_arch = "wasm32")]
#[path = "platform/wasm.rs"]
mod wasm;
#[cfg(target_arch = "wasm32")]
pub use self::wasm::OpenGLWindow;
mod display_mode;
mod window_settings;
pub use display_mode::{DisplayMode, Vsync};
pub use window_settings::WindowSettings;
use cgmath::Vector2;
use winit::event_loop::EventLoop;
pub(crate) trait OpenGLWindowContract: Sized {
fn new(desc: &WindowSettings, event_loop: &EventLoop<()>) -> (Self, glow::Context);
fn scale_factor(&self) -> f32;
fn logical_size(&self) -> Vector2<f32>;
fn physical_size(&self) -> Vector2<f32>;
fn set_cursor_grab(&self, grab: bool);
fn set_cursor_visible(&self, grab: bool);
fn set_title(&self, title: &str);
fn set_display_mode(&self, display_mode: DisplayMode);
fn swap_buffers(&self);
}