Struct sdl2::video::gl_attr::ContextFlagsBuilder [] [src]

pub struct ContextFlagsBuilder {
    // some fields omitted
}

The type that allows you to build a OpenGL context configuration.

Methods

impl ContextFlagsBuilder

fn set(&self)

Finishes the builder and applies the GL context flags to the GL context.

fn debug(&mut self) -> &mut ContextFlagsBuilder

Sets the context into "debug" mode.

fn forward_compatible(&mut self) -> &mut ContextFlagsBuilder

Sets the context into "forward compatible" mode.

fn robust_access(&mut self) -> &mut ContextFlagsBuilder

fn reset_isolation(&mut self) -> &mut ContextFlagsBuilder