Function sdl2::video::gl_attr::context_flags
[−]
[src]
pub fn context_flags() -> ContextFlags
Gets the applied OpenGL context configuration flags.
Example
// Is the GL context in debug mode? if sdl2::video::gl_attr::context_flags().has_debug() { println!("Debug mode"); }