Struct sdl2::video::gl_attr::ContextFlagsBuilder
source · pub struct ContextFlagsBuilder<'a> { /* private fields */ }
Expand description
The type that allows you to build a OpenGL context configuration.
Implementations§
source§impl<'a> ContextFlagsBuilder<'a>
impl<'a> ContextFlagsBuilder<'a>
sourcepub fn debug(&mut self) -> &mut ContextFlagsBuilder<'a>
pub fn debug(&mut self) -> &mut ContextFlagsBuilder<'a>
Sets the context into “debug” mode.
sourcepub fn forward_compatible(&mut self) -> &mut ContextFlagsBuilder<'a>
pub fn forward_compatible(&mut self) -> &mut ContextFlagsBuilder<'a>
Sets the context into “forward compatible” mode.
pub fn robust_access(&mut self) -> &mut ContextFlagsBuilder<'a>
pub fn reset_isolation(&mut self) -> &mut ContextFlagsBuilder<'a>
Auto Trait Implementations§
impl<'a> Freeze for ContextFlagsBuilder<'a>
impl<'a> RefUnwindSafe for ContextFlagsBuilder<'a>
impl<'a> !Send for ContextFlagsBuilder<'a>
impl<'a> !Sync for ContextFlagsBuilder<'a>
impl<'a> Unpin for ContextFlagsBuilder<'a>
impl<'a> UnwindSafe for ContextFlagsBuilder<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more