Information about version and extensions of current GLU implementation.


from 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 import GLUInfo

info = GLUInfo()
if info.have_version(1, 3):
    # ...

Note that GLUInfo only returns meaningful information if a context has been created.


GLUInfo Information interface for the GLU library.


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.



  • util
  • warnings

Table Of Contents

Previous topic

Next topic

GLUInfo Class