Function sdl2_sys::SDL_GL_GetAttribute

source ยท
pub unsafe extern "C" fn SDL_GL_GetAttribute(
    attr: SDL_GLattr,
    value: *mut c_int,
) -> c_int
Expand description

Get the actual value for an attribute from the current context.

\param attr an SDL_GLattr enum value specifying the OpenGL attribute to get \param value a pointer filled in with the current value of attr \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_GL_ResetAttributes \sa SDL_GL_SetAttribute