4.1.3.4. GlFeatures

This module gives access to the OpenGL version and features.

class PyOpenGLng.HighLevelApi.GlFeatures.GlFeatures[source]

Bases: object

This class encapsulates the OpenGL implementation features and available extensions.

It must only be instantiated after that an OpenGl context was created.

The public attributes are:

extensions

We can test whether a particular extension is supported using:

extension in GlVersion()
class PyOpenGLng.HighLevelApi.GlFeatures.GlVersion[source]

Bases: object

This class encapsulates the OpenGL vendor version.

It must only be instantiated after that an OpenGl context was created.

The public attributes are:

glsl_version

renderer_string

shading_language_version_string

vendor_string

version

version_string

_GLSL_VERSION_STRING_PATTERN = '(?P<major>\\d+)\\.(?P<minor>\\d+).*'
_VERSION_STRING_PATTERN = '^(?P<major>\\d+)\\.(?P<minor>\\d+)(\\.(?P<revision>\\d+))?.*'
static _version_from_match(match)[source]

Previous topic

4.1.3.3. Geometry

Next topic

4.1.3.5. GlWidgetBase

This Page