Function sdl2::video::gl_attr::set_context_flags [] [src]

pub fn set_context_flags() -> ContextFlagsBuilder

Sets any combination of OpenGL context configuration flags.

Note that calling this will reset any existing context flags.

Example

// Sets the GL context into debug mode.
sdl2::video::gl_attr::set_context_flags().debug().set();