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(self) | Get a list of available GLU extensions. |
get_version(self) | Get the current GLU version. |
have_extension(self, extension) | Determine if a GLU extension is available. |
have_version(self, major[, minor, release]) | Determine if a version of GLU is supported. |
set_active_context(self) | Store information for the currently active context. |
Defined