GLUInfo
¶Information interface for the GLU library.
A default instance is created automatically when the first OpenGL context is created. You can use the module functions as a convenience for this default instance’s methods.
If you are using more than one context, you must call set_active_context when the context is active for this GLUInfo instance.
Methods:
get_extensions
()Get a list of available GLU extensions. get_version
()Get the current GLU version. have_extension
(extension)Determine if a GLU extension is available. have_version
(major[, minor, release])Determine if a version of GLU is supported. set_active_context
()Store information for the currently active context.
Attributes:
GLUInfo.
get_extensions
()¶Get a list of available GLU extensions.
Returns: | a list of the available extensions. |
---|---|
Return type: | list of str |
GLUInfo.
get_version
()¶Get the current GLU version.
Returns: | the GLU version |
---|---|
Return type: | str |
GLUInfo.
have_extension
(extension)¶Determine if a GLU extension is available.
Parameters: | extension (str) – The name of the extension to test for, including its
GLU_ prefix. |
---|---|
Returns: | True if the extension is provided by the implementation. |
Return type: | bool |
GLUInfo.
have_version
(major, minor=0, release=0)¶Determine if a version of GLU is supported.
Parameters: |
|
---|---|
Return type: | bool |
Returns: | True if the requested or a later version is supported. |
GLUInfo.
set_active_context
()¶Store information for the currently active context.
This method is called automatically for the default context.