PythonQt.QtOpenGL.QGLFormat · declarations 001
Back to PythonQt.QtOpenGL.QGLFormat
OpenGLVersionFlag
instance-attribute
OpenGLVersionFlag: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
OpenGLVersionFlags
instance-attribute
OpenGLVersionFlags: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
OpenGL_ES_CommonLite_Version_1_0
instance-attribute
OpenGL_ES_CommonLite_Version_1_0: Any
OpenGL_ES_CommonLite_Version_1_1
instance-attribute
OpenGL_ES_CommonLite_Version_1_1: Any
OpenGL_ES_Common_Version_1_0
instance-attribute
OpenGL_ES_Common_Version_1_0: Any
OpenGL_ES_Common_Version_1_1
instance-attribute
OpenGL_ES_Common_Version_1_1: Any
OpenGL_ES_Version_2_0
instance-attribute
OpenGL_ES_Version_2_0: Any
OpenGL_Version_1_1
instance-attribute
OpenGL_Version_1_1: Any
OpenGL_Version_1_2
instance-attribute
OpenGL_Version_1_2: Any
OpenGL_Version_1_3
instance-attribute
OpenGL_Version_1_3: Any
OpenGL_Version_1_4
instance-attribute
OpenGL_Version_1_4: Any
OpenGL_Version_1_5
instance-attribute
OpenGL_Version_1_5: Any
OpenGL_Version_2_0
instance-attribute
OpenGL_Version_2_0: Any
OpenGL_Version_2_1
instance-attribute
OpenGL_Version_2_1: Any
OpenGL_Version_3_0
instance-attribute
OpenGL_Version_3_0: Any
OpenGL_Version_3_1
instance-attribute
OpenGL_Version_3_1: Any
OpenGL_Version_3_2
instance-attribute
OpenGL_Version_3_2: Any
OpenGL_Version_3_3
instance-attribute
OpenGL_Version_3_3: Any
OpenGL_Version_4_0
instance-attribute
OpenGL_Version_4_0: Any
OpenGL_Version_4_1
instance-attribute
OpenGL_Version_4_1: Any
OpenGL_Version_4_2
instance-attribute
OpenGL_Version_4_2: Any
OpenGL_Version_4_3
instance-attribute
OpenGL_Version_4_3: Any
OpenGL_Version_None
instance-attribute
OpenGL_Version_None: Any
accum
accum() -> bool
X.accum() -> bool
Supplemental documentation: Qt 5 reference:
bool QGLFormat::accum() const
Returns true if the accumulation buffer is enabled; otherwise returns false. The
accumulation buffer is disabled by default.
See also setAccum() and setAccumBufferSize().
Upstream PySide2 reference signatures (binding differences may apply):
accum(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglformat.html#accum
accumBufferSize
accumBufferSize() -> int
X.accumBufferSize() -> int
Supplemental documentation: Qt 5 reference:
int QGLFormat::accumBufferSize() const
Returns the accumulation buffer size.
See also setAccumBufferSize(), accum(), and setAccum().
Upstream PySide2 reference signatures (binding differences may apply):
accumBufferSize(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qglformat.html#accumBufferSize
alpha
alpha() -> bool
X.alpha() -> bool
Supplemental documentation: Qt 5 reference:
bool QGLFormat::alpha() const
Returns true if the alpha buffer in the framebuffer is enabled; otherwise returns
false. The alpha buffer is disabled by default.
See also setAlpha() and setAlphaBufferSize().
Upstream PySide2 reference signatures (binding differences may apply):
alpha(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglformat.html#alpha
alphaBufferSize
alphaBufferSize() -> int
X.alphaBufferSize() -> int
Supplemental documentation: Qt 5 reference:
int QGLFormat::alphaBufferSize() const
Returns the alpha buffer size.
See also alpha(), setAlpha(), and setAlphaBufferSize().
Upstream PySide2 reference signatures (binding differences may apply):
alphaBufferSize(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qglformat.html#alphaBufferSize
blueBufferSize
blueBufferSize() -> int
X.blueBufferSize() -> int
Supplemental documentation: Qt 5 reference:
int QGLFormat::blueBufferSize() const
Returns the blue buffer size.
This function was introduced in Qt 4.2.
See also setBlueBufferSize().
Upstream PySide2 reference signatures (binding differences may apply):
blueBufferSize(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qglformat.html#blueBufferSize
defaultFormat
defaultFormat() -> Any
X.defaultFormat() -> PythonQt.QtOpenGL.QGLFormat
Supplemental documentation: Qt 5 reference:
[static] QGLFormat QGLFormat::defaultFormat()
Returns the default QGLFormat for the application. All QGLWidget objects that are created use this format unless another format is specified, e.g. when they are constructed.
If no special default format has been set using setDefaultFormat(), the default format is the same as that created with QGLFormat().
See also setDefaultFormat().
Upstream PySide2 reference signatures (binding differences may apply):
defaultFormat() -> PySide2.QtOpenGL.QGLFormat
Source: https://doc.qt.io/archives/qt-5.15/qglformat.html#defaultFormat
defaultOverlayFormat
defaultOverlayFormat() -> Any
X.defaultOverlayFormat() -> PythonQt.QtOpenGL.QGLFormat
Supplemental documentation: Qt 5 reference:
[static] QGLFormat QGLFormat::defaultOverlayFormat()
Returns the default QGLFormat for overlay contexts.
The default overlay format is:
- Double buffer: Disabled.
- Depth buffer: Disabled.
- RGBA: Disabled (i.e., color index enabled).
- Alpha channel: Disabled.
- Accumulator buffer: Disabled.
- Stencil buffer: Disabled.
- Stereo: Disabled.
- Direct rendering: Enabled.
- Overlay: Disabled.
- Multisample buffers: Disabled.
- Plane: 1 (i.e., first overlay plane).
See also setDefaultOverlayFormat() and setDefaultFormat().
Upstream PySide2 reference signatures (binding differences may apply):
defaultOverlayFormat() -> PySide2.QtOpenGL.QGLFormat
Source: https://doc.qt.io/archives/qt-5.15/qglformat.html#defaultOverlayFormat
depth
depth() -> bool
X.depth() -> bool
Supplemental documentation: Qt 5 reference:
bool QGLFormat::depth() const
Returns true if the depth buffer is enabled; otherwise returns false. The depth buffer
is enabled by default.
See also setDepth() and setDepthBufferSize().
Upstream PySide2 reference signatures (binding differences may apply):
depth(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglformat.html#depth
depthBufferSize
depthBufferSize() -> int
X.depthBufferSize() -> int
Supplemental documentation: Qt 5 reference:
int QGLFormat::depthBufferSize() const
Returns the depth buffer size.
See also depth(), setDepth(), and setDepthBufferSize().
Upstream PySide2 reference signatures (binding differences may apply):
depthBufferSize(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qglformat.html#depthBufferSize
directRendering
directRendering() -> bool
X.directRendering() -> bool
Supplemental documentation: Qt 5 reference:
bool QGLFormat::directRendering() const
Returns true if direct rendering is enabled; otherwise returns false.
Direct rendering is enabled by default.
See also setDirectRendering().
Upstream PySide2 reference signatures (binding differences may apply):
directRendering(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglformat.html#directRendering
doubleBuffer
doubleBuffer() -> bool
X.doubleBuffer() -> bool
Supplemental documentation: Qt 5 reference:
bool QGLFormat::doubleBuffer() const
Returns true if double buffering is enabled; otherwise returns false. Double buffering
is enabled by default.
See also setDoubleBuffer().
Upstream PySide2 reference signatures (binding differences may apply):
doubleBuffer(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglformat.html#doubleBuffer
fromSurfaceFormat
fromSurfaceFormat(format: Any) -> Any
X.fromSurfaceFormat(format) -> PythonQt.QtOpenGL.QGLFormat
Supplemental documentation: Qt 5 reference:
[static] QGLFormat QGLFormat::fromSurfaceFormat(const QSurfaceFormat \&format)
Returns an OpenGL format for the window format specified by format.
Upstream PySide2 reference signatures (binding differences may apply):
fromSurfaceFormat(format: PySide2.QtGui.QSurfaceFormat) -> PySide2.QtOpenGL.QGLFormat
Source: https://doc.qt.io/archives/qt-5.15/qglformat.html#fromSurfaceFormat
greenBufferSize
greenBufferSize() -> int
X.greenBufferSize() -> int
Supplemental documentation: Qt 5 reference:
int QGLFormat::greenBufferSize() const
Returns the green buffer size.
This function was introduced in Qt 4.2.
See also setGreenBufferSize().
Upstream PySide2 reference signatures (binding differences may apply):
greenBufferSize(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qglformat.html#greenBufferSize
hasOpenGL
hasOpenGL() -> bool
X.hasOpenGL() -> bool
Supplemental documentation: Qt 5 reference:
[static] bool QGLFormat::hasOpenGL()
Returns true if the window system has any OpenGL support; otherwise returns false.
Warning: This function must not be called until the QApplication object has been created.
Upstream PySide2 reference signatures (binding differences may apply):
hasOpenGL() -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglformat.html#hasOpenGL
hasOpenGLOverlays
hasOpenGLOverlays() -> bool
X.hasOpenGLOverlays() -> bool
Supplemental documentation: Qt 5 reference:
[static] bool QGLFormat::hasOpenGLOverlays()
Returns true if the window system supports OpenGL overlays; otherwise returns false.
Warning: This function must not be called until the QApplication object has been created.
Upstream PySide2 reference signatures (binding differences may apply):
hasOpenGLOverlays() -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglformat.html#hasOpenGLOverlays
hasOverlay
hasOverlay() -> bool
X.hasOverlay() -> bool
Supplemental documentation: Qt 5 reference:
bool QGLFormat::hasOverlay() const
Returns true if overlay plane is enabled; otherwise returns false.
Overlay is disabled by default.
See also setOverlay().
Upstream PySide2 reference signatures (binding differences may apply):
hasOverlay(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglformat.html#hasOverlay
majorVersion
majorVersion() -> int
X.majorVersion() -> int
Supplemental documentation: Qt 5 reference:
int QGLFormat::majorVersion() const
Returns the OpenGL major version.
This function was introduced in Qt 4.7.
See also setVersion() and minorVersion().
Upstream PySide2 reference signatures (binding differences may apply):
majorVersion(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qglformat.html#majorVersion