pygame2.sdl.gl – SDL OpenGL access wrapper module

SDL OpenGL access wrapper module

Module Functions

pygame2.sdl.gl.get_attribute(attribute) → int

Gets an OpenGL attribute value.

Gets the current value of the specified OpenGL attribute constant.

pygame2.sdl.gl.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.

pygame2.sdl.gl.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 pygame2.sdl.video.set_mode() to have any effect.

pygame2.sdl.gl.set_attribute(attribute, value) → None

Sets an OpenGL attribute value.

Sets the value of the specified OpenGL attribute.

pygame2.sdl.gl.swap_buffers() → None
Swap the OpenGL buffers, if double-buffering is supported.

Table Of Contents

Previous topic

pygame2.sdl.event – SDL event wrapper

Next topic

pygame2.sdl.image – SDL image I/O wrapper module

This Page