Crate old_school_gfx_glutin_ext[−][src]
Expand description
Extensions for glutin to initialize & update old school gfx. An alternative to gfx_window_glutin.
Example
use old_school_gfx_glutin_ext::*; type ColorFormat = gfx::format::Srgba8; type DepthFormat = gfx::format::DepthStencil; // Initialize let (window_ctx, mut device, mut factory, mut main_color, mut main_depth) = glutin::ContextBuilder::new() .with_gfx_color_depth::<ColorFormat, DepthFormat>() .build_windowed(window_config, &event_loop)? .init_gfx::<ColorFormat, DepthFormat>(); // Update, ie after a resize window_ctx.update_gfx(&mut main_color, &mut main_depth);
Traits
ContextBuilderExt | |
WindowInitExt | |
WindowUpdateExt |