Trees | Indices | Toggle frames |
---|
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.
GLUInfo
Information interface for the GLU library.
|
set_active_context()
Store information for the currently active context.
|
|
bool |
have_version(major,
minor=0,
release=0)
Determine if a version of GLU is supported.
|
str |
get_version()
Get the current GLU version.
|
bool |
have_extension(extension)
Determine if a GLU extension is available.
|
list of str |
get_extensions()
Get a list of available GLU extensions.
|
__package__ =
|
Store information for the currently active context.
This method is called automatically for the default context.
Trees | Indices | Toggle frames |
---|
Generated by Epydoc 3.0beta1 on Thu Dec 31 17:58:17 2009 | http://epydoc.sourceforge.net |