Get the actual value for an attribute from the current context.
Defined in SDL_video.h
attr | an SDL_GLattr enum value specifying the OpenGL attribute to get |
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.
This function is available since SDL 2.0.0.