SDL_GL_GetAttribute

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

extern (C) nothrow @nogc extern
bool
SDL_GL_GetAttribute

Parameters

attr SDL_GLAttr

an SDL_GLAttr enum value specifying the OpenGL attribute to get.

value int*

a pointer filled in with the current value of attr.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError() for more information.

Threadsafety: This function should only be called on the main thread.

See Also

Meta