Get the actual value for an attribute from the current context.
Defined in SDL_video.h
int SDL_GL_GetAttribute(SDL_GLattr attr, int *value);
SDL_GLattr | attr | an SDL_GLattr enum value specifying the OpenGL attribute to get. |
int * | value | a pointer filled in with the current value of attr . |
(int) 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.