1 # -----------------------------------------------------------------------------
2 # Copyright © 2009- The Spyder Development Team
4 # Licensed under the terms of the MIT License
5 # (see LICENSE.txt for details)
6 # -----------------------------------------------------------------------------
8 """Provides QtOpenGL classes and functions."""
12 from . import PYQT5
, PYQT6
, PYSIDE2
, PYSIDE6
15 from PyQt5
.QtGui
import (
21 QOpenGLFramebufferObject
,
22 QOpenGLFramebufferObjectFormat
,
23 QOpenGLPixelTransferOptions
,
27 QOpenGLTextureBlitter
,
28 QOpenGLVersionProfile
,
29 QOpenGLVertexArrayObject
,
32 from PyQt5
.QtOpenGL
import *
34 # These are not present on some architectures such as armhf
35 with contextlib
.suppress(ImportError):
36 from PyQt5
.QtGui
import QOpenGLTimeMonitor
, QOpenGLTimerQuery
39 from PyQt6
.QtGui
import QOpenGLContext
, QOpenGLContextGroup
40 from PyQt6
.QtOpenGL
import *
42 from PySide6
.QtGui
import QOpenGLContext
, QOpenGLContextGroup
43 from PySide6
.QtOpenGL
import *
45 from PySide2
.QtGui
import (
51 QOpenGLFramebufferObject
,
52 QOpenGLFramebufferObjectFormat
,
53 QOpenGLPixelTransferOptions
,
57 QOpenGLTextureBlitter
,
58 QOpenGLVersionProfile
,
59 QOpenGLVertexArrayObject
,
62 from PySide2
.QtOpenGL
import *
64 # These are not present on some architectures such as armhf
65 with contextlib
.suppress(ImportError):
66 from PySide2
.QtGui
import QOpenGLTimeMonitor
, QOpenGLTimerQuery