Get the actual value for an attribute from the current context.
int SDL_GL_GetAttribute(SDL_GLattr attr, int *value);
attr |
an SDL_GLattr enum value specifying the OpenGL attribute to get |
value |
a pointer filled in with the current value of |
Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.