:mod:`pygame2.sdl.gl` -- SDL OpenGL access wrapper module
=========================================================

SDL OpenGL access wrapper module

.. module:: pygame2.sdl.gl
   :synopsis: SDL OpenGL access wrapper module

Module Functions
----------------
.. function:: get_attribute (attribute) -> int

  Gets an OpenGL attribute value.

  Gets the current value of the specified OpenGL attribute constant.



.. function:: get_proc_address (procname) -> CObject

  Gets the proc address of a function in the loaded OpenGL libraries.

  The proc address is an encapsuled function pointer and as such only
  useful for ctypes bindings or other C API modules.



.. function:: load_library (libraryname) -> None

  Loads the desired OpenGL library.

  Loads the desired OpenGL library specified by the passed full qualified
  path. This must be called before any first call to
  :meth:`pygame2.sdl.video.set_mode` to have any effect.



.. function:: set_attribute (attribute, value) -> None

  Sets an OpenGL attribute value.

  Sets the value of the specified OpenGL attribute.



.. function:: swap_buffers () -> None

  Swap the OpenGL buffers, if double-buffering is supported.



