Method SDL.gl_set_attribute()
- Method gl_set_attribute
voidgl_set_attribute(intattribute,intvalue)- 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_SIZEorSDL.GL_DOUBLEBUFFER.- Parameter
value The value to set for this attribute.
- See also