[][src]Function sdl2_sys::SDL_GL_SetAttribute

pub unsafe extern "C" fn SDL_GL_SetAttribute(
    attr: SDL_GLattr,
    value: c_int
) -> c_int

\brief Set an OpenGL window attribute before window creation.

\return 0 on success, or -1 if the attribute could not be set.