Function setGLAttribute

Wraps SDL_GL_SetAttribute which sets OpenGL attributes for initialization

void setGLAttribute (
  GLAttribute attribute,
  uint value
) @trusted;

Parameters

NameDescription
attribute the dsdl2.GLAttribute to set
value requested value for the attribute to be set as

Throws

dsdl2.SDLException if unable to set the attribute