PySide6.QtOpenGL.QOpenGLVersionFunctionsFactory¶
- class QOpenGLVersionFunctionsFactory¶
- Provides access to OpenGL functions for a specified version and profile. - Synopsis¶- Static functions¶- def - get()
 - Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - static get([versionProfile=QOpenGLVersionProfile()[, context=None]])¶
- Parameters:
- versionProfile – - QOpenGLVersionProfile
- context – - QOpenGLContext
 
- Return type:
 
 - Returns a pointer to an object that provides access to all functions for the - versionProfileof the- context. There is no need to call QAbstractOpenGLFunctions::initializeOpenGLFunctions() as long as the- contextis current. It is also possible to call this function when the- contextis not current, but in that case it is the caller’s responsibility to ensure proper initialization by calling QAbstractOpenGLFunctions::initializeOpenGLFunctions() afterwards.- Usually one would use the template version of this function to automatically have the result cast to the correct type.