diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-03-11 15:31:17 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-03-11 17:24:46 +0100 |
commit | 091f488479227c58fd3944d68c48fc7efe223f9e (patch) | |
tree | 2de0a4efb5c2b3904b7b269e469e26e4d7e3bf39 /sources/pyside6/PySide6/QtOpenGLFunctions/typesystem_openglfunctions.xml | |
parent | 146b3cb79c3f0927df3d7c5d9fdc9c67b976051d (diff) |
PySide6: Add QOpenGLVersionFunctionsFactory
Make it possible to obtain versioned OpenGL functions.
Task-number: PYSIDE-1482
Fixes: PYSIDE-955
Pick-to: 6.0
Change-Id: Ife315de0aa05ac83610e228389bcf55214e93e55
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6/QtOpenGLFunctions/typesystem_openglfunctions.xml')
-rw-r--r-- | sources/pyside6/PySide6/QtOpenGLFunctions/typesystem_openglfunctions.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/QtOpenGLFunctions/typesystem_openglfunctions.xml b/sources/pyside6/PySide6/QtOpenGLFunctions/typesystem_openglfunctions.xml index 819adca6a..4f3c4487f 100644 --- a/sources/pyside6/PySide6/QtOpenGLFunctions/typesystem_openglfunctions.xml +++ b/sources/pyside6/PySide6/QtOpenGLFunctions/typesystem_openglfunctions.xml @@ -399,6 +399,14 @@ &openglfunctions_modifications1_0; &openglfunctions_modifications1_1; </object-type> + + <object-type name="QOpenGLVersionFunctionsFactory"> + <modify-function signature="get(const QOpenGLVersionProfile &,QOpenGLContext *)"> + <inject-code class="target" position="beginning" file="../glue/qtopenglfunctions.cpp" + snippet="qopenglversionfunctionsfactory-get"/> + </modify-function> + </object-type> + <suppress-warning text="^There's no user provided way.*QOpenGLFunctions_\d_\d.*::glIndex.*$"/> </typesystem> |