Function getGLAttribute

Wraps SDL_GL_GetAttribute which gets previously set OpenGL attributes for initialization

uint getGLAttribute (
  GLAttribute attribute
) @trusted;

Parameters

NameDescription
attribute the dsdl2.GLAttribute whose value to get

Returns

value of the requested attribute

Throws

dsdl2.SDLException if unable to get the attribute