6#include <QtCore/qatomic.h>
7#include <QtCore/QDebug>
8#include <QOpenGLContext>
9#include <QtGui/qcolorspace.h>
10#include <QtGui/qguiapplication.h>
65 QSurfaceFormat::FormatOptions
opts;
217void QSurfaceFormat::detach()
281 QSurfaceFormat::FormatOptions newOptions = d->
opts;
284 if (
int(newOptions) !=
int(d->
opts)) {
286 d->
opts = newOptions;
590 if (d->
major != major) {
613 if (d->
minor != minor) {
720#if QT_DEPRECATED_SINCE(6, 0)
734 case DefaultColorSpace:
786 if (globalContext && globalContext->
isValid()) {
787 qWarning(
"Warning: Setting a new default format with a different version or profile "
788 "after the global shared context is created may cause issues with context "
793 *qt_default_surface_format() =
format;
806 return *qt_default_surface_format();
828 return (
d ==
other.d) || ((int)
d->opts == (
int)
other.d->opts
829 &&
d->stencilSize ==
other.d->stencilSize
830 &&
d->redBufferSize ==
other.d->redBufferSize
831 &&
d->greenBufferSize ==
other.d->greenBufferSize
832 &&
d->blueBufferSize ==
other.d->blueBufferSize
833 &&
d->alphaBufferSize ==
other.d->alphaBufferSize
834 &&
d->depthSize ==
other.d->depthSize
835 &&
d->numSamples ==
other.d->numSamples
836 &&
d->swapBehavior ==
other.d->swapBehavior
837 &&
d->profile ==
other.d->profile
838 &&
d->major ==
other.d->major
839 &&
d->minor ==
other.d->minor
840 &&
d->swapInterval ==
other.d->swapInterval);
843#ifndef QT_NO_DEBUG_STREAM
849 dbg.nospace() <<
"QSurfaceFormat("
850 <<
"version " <<
d->major <<
'.' <<
d->minor
851 <<
", options " <<
d->opts
852 <<
", depthBufferSize " <<
d->depthSize
853 <<
", redBufferSize " <<
d->redBufferSize
854 <<
", greenBufferSize " <<
d->greenBufferSize
855 <<
", blueBufferSize " <<
d->blueBufferSize
856 <<
", alphaBufferSize " <<
d->alphaBufferSize
857 <<
", stencilBufferSize " <<
d->stencilSize
858 <<
", samples " <<
d->numSamples
859 <<
", swapBehavior " <<
d->swapBehavior
860 <<
", swapInterval " <<
d->swapInterval
861 <<
", colorSpace " <<
d->colorSpace
862 <<
", profile " <<
d->profile
871#include "moc_qsurfaceformat.cpp"
T loadRelaxed() const noexcept
The QColorSpace class provides a color space abstraction.
bool isValid() const
Returns if this context is valid, i.e.
static QOpenGLContext * globalShareContext()
Combined button and popup list for selecting options.
std::pair< T1, T2 > QPair
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
#define Q_GLOBAL_STATIC(TYPE, NAME,...)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum format
constexpr decltype(auto) qMakePair(T1 &&value1, T2 &&value2) noexcept(noexcept(std::make_pair(std::forward< T1 >(value1), std::forward< T2 >(value2))))