
Triple buffering comes at the cost of an extra frame of memory usage and latency, and might not be supported depending on the underlying platform.

Depending on the platform it might also lead to slightly more efficient use of the GPU due to improved pipelining behaviour. This swap behaviour is sometimes used in order to decrease the risk of skipping a frame when the rendering rate is just barely keeping up with the screen refresh rate. Rendering is done to the back buffer, and then the back buffer and front buffer are swapped, or the contents of the back buffer are copied to the front buffer, depending on the implementation. This is typically the default swap behaviour on desktop platforms, consisting of one back buffer and one front buffer. Used to request single buffering, which might result in flickering when OpenGL rendering is done directly to screen without an intermediate offscreen buffer. The default, unspecified swap behaviour of the platform. To get access to the deprecated functionality for the core profile in the set OpenGL version you can use the QSurfaceFormat format option QSurfaceFormat::DeprecatedFunctions. Note that the core profile might still contain functionality that is deprecated and scheduled for removal in a higher version. Profiles are exposed in OpenGL 3.2 and above, and are used to choose between a restricted core profile, and a compatibility profile which might contain deprecated support functionality. This enum is used to specify the OpenGL context profile, in conjunction with QSurfaceFormat::setMajorVersion() and QSurfaceFormat::setMinorVersion(). enum QSurfaceFormat:: OpenGLContextProfile It stores an OR combination of FormatOption values. The FormatOptions type is a typedef for QFlags. See isValid() for more information on this.
STARBOUND OPENGL 2.0 NOT AVAILABLE WINDOWS
Platforms that support dynamically enabling the monitoring of the loss of context, such as, Windows with WGL, or Linux/X11 (xcb) with GLX, will monitor the status in every call to makeCurrent(). Additionally, some implementations may choose to report context loss regardless of this flag. Note that not setting this flag does not guarantee that context state loss never occurs. The status is then queryable via the context's isValid() function. This requires OpenGL version 3.0 or higher.Įnables notifications about resets of the OpenGL context. If not specified, you should get a forward compatible context without support functionality marked as deprecated. Used to request that deprecated functions be included in the OpenGL context profile. Used to request a debug context with extra debugging information. Used to request stereo buffers in the surface format. TestOption(QSurfaceFormat::FormatOption option) const SetSwapBehavior(QSurfaceFormat::SwapBehavior behavior) SetRenderableType(QSurfaceFormat::RenderableType type) SetProfile(QSurfaceFormat::OpenGLContextProfile profile) SetOptions(QSurfaceFormat::FormatOptions options) SetOption(QSurfaceFormat::FormatOption option, bool on = true)

SetColorSpace(QSurfaceFormat::ColorSpace colorSpace) QSurfaceFormat(QSurfaceFormat::FormatOptions options) QSurfaceFormat(const QSurfaceFormat & other)
