pyglet.gl.gl_info
¶Information about version and extensions of current GL implementation.
Usage:
from pyglet.gl import gl_info
if gl_info.have_extension('GL_NV_register_combiners'):
# ...
If you are using more than one context, you can set up a separate GLInfo object for each context. Call set_active_context after switching to the context:
from pyglet.gl.gl_info import GLInfo
info = GLInfo()
info.set_active_context()
if info.have_version(2, 1):
# ...
get_extensions |
Get a list of available OpenGL extensions. |
get_renderer |
Determine the renderer string of the OpenGL context. |
get_vendor |
Determine the vendor string of the OpenGL context. |
get_version |
Get the current OpenGL version. |
have_context () |
Determine if a default OpenGL context has been set yet. |
have_extension |
Determine if an OpenGL extension is available. |
have_version |
Determine if a version of OpenGL is supported. |
remove_active_context |
|
set_active_context |
Store information for the currently active context. |
Defined
util
warnings