# Method SDL.gl_set_attribute()

Method gl_set_attribute

  ``void` gl_set_attribute(`int` `attribute`, `int` `value`)`

Description

  Sets an SDL/OpenGL attribute to the given value.

  This won't take effect until after a call to SDL.set_video_mode().

Parameter `attribute`

  The attribute to set. This will be one of `SDL.GL_RED_SIZE`, `SDL.GL_GREEN_SIZE`, `SDL.GL_BLUE_SIZE`, `SDL.GL_DEPTH_SIZE` or `SDL.GL_DOUBLEBUFFER`.

Parameter `value`

  The value to set for this attribute.

See also

  SDL.gl_get_attribute()