44 #include <QtCore/QDebug> 88 QPlatformWindowFormat::FormatOptions
opts;
218 QPlatformWindowFormat::FormatOptions newOpts = options;
219 d->opts = defaultFormat().d->opts;
220 d->opts |= (newOpts & 0xffff);
221 d->opts &= ~(newOpts >> 16);
559 return d->numSamples;
572 if (numSamples < 0) {
573 qWarning(
"QPlatformWindowFormat::setSamples: Cannot have negative number of samples per pixel %d", numSamples);
577 setSampleBuffers(numSamples > 0);
604 d->swapInterval = interval;
618 return d->swapInterval;
634 d->sharedContext = context;
639 return d->sharedContext;
680 d->opts &= ~(opt >> 16);
694 return (
d->opts & opt) != 0;
696 return (
d->opts & (opt >> 16)) == 0;
708 qWarning(
"QPlatformWindowFormat::setDepthBufferSize: Cannot set negative depth buffer size %d", size);
739 qWarning(
"QPlatformWindowFormat::setRedBufferSize: Cannot set negative red buffer size %d", size);
774 qWarning(
"QPlatformWindowFormat::setGreenBufferSize: Cannot set negative green buffer size %d", size);
809 qWarning(
"QPlatformWindowFormat::setBlueBufferSize: Cannot set negative blue buffer size %d", size);
840 qWarning(
"QPlatformWindowFormat::setAlphaBufferSize: Cannot set negative alpha buffer size %d", size);
867 qWarning(
"QPlatformWindowFormat::setAccumBufferSize: Cannot set negative accumulate buffer size %d", size);
893 qWarning(
"QPlatformWindowFormat::setStencilBufferSize: Cannot set negative stencil buffer size %d", size);
896 d->stencilSize = size;
897 setStencil(size > 0);
907 return d->stencilSize;
924 return *q_platformwindow_default_format();
938 *q_platformwindow_default_format() = f;
1010 return (a.
d == b.
d) || ((int) a.
d->
opts == (
int) b.
d->
opts 1041 #ifndef QT_NO_DEBUG_STREAM 1047 <<
"options " << d->
opts 1051 <<
", redBufferSize " << d->
redSize 1053 <<
", blueBufferSize " << d->
blueSize The QDebug class provides an output stream for debugging information.
The QAtomicInt class provides platform-independent atomic operations on integers. ...
QDebug & nospace()
Clears the stream's internal flag that records whether the last character was a space and returns a r...
long ASN1_INTEGER_get ASN1_INTEGER * a
bool operator!=(QBool b1, bool b2)
bool ref()
Atomically increments the value of this QAtomicInt.
Q_CORE_EXPORT void qWarning(const char *,...)
The QPlatformGLContext class provides an abstraction for native GL contexts.
QDebug & space()
Writes a space character to the debug stream and returns a reference to the stream.
bool operator==(QBool b1, bool b2)