Struct glutin::GlAttributes
[−]
[src]
pub struct GlAttributes<S> { pub sharing: Option<S>, pub version: GlRequest, pub profile: Option<GlProfile>, pub debug: bool, pub robustness: Robustness, pub vsync: bool, }
Attributes to use when creating an OpenGL context.
Fields
sharing | An existing context to share the new the context with. The default is |
version | Version to try create. See The default is |
profile | OpenGL profile to use. The default is |
debug | Whether to enable the Debug contexts are usually slower but give better error reporting. The default is |
robustness | How the OpenGL context should detect errors. The default is |
vsync | Whether to use vsync. If vsync is enabled, calling The default is |
Methods
impl<S> GlAttributes<S>
fn map_sharing<F, T>(self, f: F) -> GlAttributes<T> where F: FnOnce(S) -> T
Turns the sharing
parameter into another type by calling a closure.