Qt 4.8
|
The QGL namespace specifies miscellaneous identifiers used in the Qt OpenGL module. More...
Enumerations | |
enum | FormatOption { DoubleBuffer = 0x0001, DepthBuffer = 0x0002, Rgba = 0x0004, AlphaChannel = 0x0008, AccumBuffer = 0x0010, StencilBuffer = 0x0020, StereoBuffers = 0x0040, DirectRendering = 0x0080, HasOverlay = 0x0100, SampleBuffers = 0x0200, DeprecatedFunctions = 0x0400, SingleBuffer = DoubleBuffer << 16, NoDepthBuffer = DepthBuffer << 16, ColorIndex = Rgba << 16, NoAlphaChannel = AlphaChannel << 16, NoAccumBuffer = AccumBuffer << 16, NoStencilBuffer = StencilBuffer << 16, NoStereoBuffers = StereoBuffers << 16, IndirectRendering = DirectRendering << 16, NoOverlay = HasOverlay << 16, NoSampleBuffers = SampleBuffers << 16, NoDeprecatedFunctions = DeprecatedFunctions << 16 } |
This enum specifies the format options that can be used to configure an OpenGL context. More... | |
Functions | |
Q_OPENGL_EXPORT void | setPreferredPaintEngine (QPaintEngine::Type engineType) |
Sets the preferred OpenGL paint engine that is used to draw onto QGLWidget, QGLPixelBuffer and QGLFramebufferObject targets with QPainter in Qt. More... | |
The QGL namespace specifies miscellaneous identifiers used in the Qt OpenGL module.
enum QGL::FormatOption |
This enum specifies the format options that can be used to configure an OpenGL context.
These are set using QGLFormat::setOption().
Definition at line 144 of file qgl.h.
void QGL::setPreferredPaintEngine | ( | QPaintEngine::Type | engineType | ) |
Sets the preferred OpenGL paint engine that is used to draw onto QGLWidget, QGLPixelBuffer and QGLFramebufferObject targets with QPainter in Qt.
The engineType parameter specifies which of the GL engines to use. Only QPaintEngine::OpenGL
and QPaintEngine::OpenGL2
are valid parameters to this function. All other values are ignored.
By default, the QPaintEngine::OpenGL2
engine is used if GL/GLES version 2.0 is available, otherwise QPaintEngine::OpenGL
is used.
Definition at line 299 of file qgl.cpp.
Referenced by QGLGraphicsSystemPlugin::create().