QOpenGLVersionFunctionsFactory — PyQt Documentation v6.9.0 (original) (raw)
PyQt6.QtOpenGL.QOpenGLVersionFunctionsFactory
Description¶
Provides access to OpenGL functions for a specified version and profile.
Methods¶
__init__()
TODO
__init__(QOpenGLVersionFunctionsFactory)
TODO
@staticmethod
get(versionProfile: QOpenGLVersionProfile = QOpenGLVersionProfile(), context: QOpenGLContext = None) → QAbstractOpenGLFunctions
Returns a pointer to an object that provides access to all functions for the versionProfile of the context. There is no need to call as long as the context is current. It is also possible to call this function when the context is not current, but in that case it is the caller’s responsibility to ensure proper initialization by calling afterwards.
Usually one would use the template version of this function to automatically have the result cast to the correct type.