#pragma section-numbers off #pragma disable-camelcase = SDL_GL_GetAttribute = Use this function to get the actual value for an attribute from the current context. <> == Syntax == {{{#!highlight cpp int SDL_GL_GetAttribute(SDL_GLattr attr, int* value) }}} == Function Parameters == ||'''attr'''||the [[SDL_GLattr]] structure to query|| ||'''value'''||a pointer filled in with the current value of '''attr'''|| == Return Value == Returns 0 on success or a negative error code on failure; call [[SDL_GetError]]() for more information. == Code Examples == {{{#!highlight cpp You can add your code example here }}} == Remarks == '''attr''' may be one of the following: <> == Related Functions == .[[SDL_GL_ResetAttributes]] .[[SDL_GL_SetAttribute]] ---- [[CategoryAPI]], [[CategoryVideo]]