pyglet.gl.glu_info
¶Information about version and extensions of current GLU implementation.
Usage:
from pyglet.gl import glu_info
if glu_info.have_extension('GLU_EXT_nurbs_tessellator'):
# ...
If multiple contexts are in use you can use a separate GLUInfo object for each context. Call set_active_context after switching to the desired context for each GLUInfo:
from pyglet.gl.glu_info import GLUInfo
info = GLUInfo()
info.set_active_context()
if info.have_version(1, 3):
# ...
Note that GLUInfo only returns meaningful information if a context has been created.
get_extensions |
Get a list of available GLU extensions. |
get_version |
Get the current GLU version. |
have_extension |
Determine if a GLU extension is available. |
have_version |
Determine if a version of GLU is supported. |
set_active_context |
Store information for the currently active context. |
Defined
util
warnings