GLUInfo Class

Inheritance diagram of GLUInfo

class 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:

extensions Type: list
have_context Type: bool
version Type: str

Methods

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:
  • major (int) – The major revision number (typically 1).
  • minor (int) – The minor revision number.
  • release (int) – The release number.
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.

Attributes

GLUInfo.extensions = []
GLUInfo.have_context = False
GLUInfo.version = '0.0.0'

Table Of Contents

Previous topic

set_active_context Function

Next topic

get_extensions Function