Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qopengl.cpp File Reference

(4538bbf4a68a80f09cad8749a2b05bfb8ce4290c)

#include "qopengl.h"
#include "qopengl_p.h"
#include "qopenglcontext.h"
#include "qopenglfunctions.h"
#include "qoperatingsystemversion.h"
#include "qoffscreensurface.h"
#include <QtCore/QDebug>
#include <QtCore/QJsonDocument>
#include <QtCore/QJsonValue>
#include <QtCore/QJsonObject>
#include <QtCore/QJsonArray>
#include <QtCore/QTextStream>
#include <QtCore/QFile>
#include <QtCore/QDir>
+ Include dependency graph for qopengl.cpp:

Go to the source code of this file.

Macros

#define GL_CONTEXT_LOST   0x0507
 

Typedefs

typedef const GLubyte *QOPENGLF_APIENTRYP qt_glGetStringi(GLenum, GLuint)
 
typedef QJsonArray::ConstIterator JsonArrayConstIt
 

Functions

QDebug operator<< (QDebug d, const QOpenGLConfig::Gpu &g)
 
static bool contains (const QJsonArray &haystack, unsigned needle)
 
static bool contains (const QJsonArray &haystack, const QString &needle)
 
static QString msgSyntaxWarning (const QJsonObject &object, const QString &what)
 
static bool matches (const QJsonObject &object, const QString &osName, const QVersionNumber &kernelVersion, const QString &osRelease, const QOpenGLConfig::Gpu &gpu)
 
static bool readGpuFeatures (const QOpenGLConfig::Gpu &gpu, const QString &osName, const QVersionNumber &kernelVersion, const QString &osRelease, const QJsonDocument &doc, QSet< QString > *result, QString *errorMessage)
 
static bool readGpuFeatures (const QOpenGLConfig::Gpu &gpu, const QString &osName, const QVersionNumber &kernelVersion, const QString &osRelease, const QByteArray &jsonAsciiData, QSet< QString > *result, QString *errorMessage)
 
static bool readGpuFeatures (const QOpenGLConfig::Gpu &gpu, const QString &osName, const QVersionNumber &kernelVersion, const QString &osRelease, const QString &fileName, QSet< QString > *result, QString *errorMessage)
 

Macro Definition Documentation

◆ GL_CONTEXT_LOST

Typedef Documentation

◆ JsonArrayConstIt

Definition at line 114 of file qopengl.cpp.

◆ qt_glGetStringi

typedef const GLubyte *QOPENGLF_APIENTRYP qt_glGetStringi(GLenum, GLuint)

Definition at line 26 of file qopengl.cpp.

Function Documentation

◆ contains() [1/2]

static bool contains ( const QJsonArray & haystack,
const QString & needle )
inlinestatic

Definition at line 125 of file qopengl.cpp.

References QSet< T >::constBegin(), and it.

+ Here is the call graph for this function:

◆ contains() [2/2]

static bool contains ( const QJsonArray & haystack,
unsigned needle )
inlinestatic

Definition at line 116 of file qopengl.cpp.

References QSet< T >::constBegin(), and it.

Referenced by LowEnergyNotificationHub::LowEnergyNotificationHub(), QWindowsPrintDevice::QWindowsPrintDevice(), QScreen::~QScreen(), QMenuPrivate::actionAt(), QPdfEnginePrivate::addImage(), QRasterPaintEngine::alphaPenBlt(), QCoreApplication::arguments(), QPlatformGraphicsBufferHelper::bindSWToTexture(), QWaylandSurface::client(), QSet< T >::contains(), QRect::contains(), QRect::contains(), QRectF::contains(), convert_generic(), convert_generic_over_rgb64(), QXcbWindow::create(), QVkKhrDisplayVulkanInstance::createOrAdoptInstance(), QSocks5SocketEngineHandler::createSocketEngine(), QOutlineMapper::curveTo(), QPpdPrintDevice::defaultColorMode(), QCocoaPrintDevice::defaultColorMode(), QQuickDeliveryAgentPrivate::deliverMatchingPointsToItem(), QMdiSubWindow::event(), QToolBar::event(), QMdiSubWindow::eventFilter(), QWindowsFontDatabaseBase::extraTryFontsForFamily(), fallbacksForFamily(), QFileInfoGatherer::fetchExtendedInformation(), QWaylandMimeHelper::getByteArray(), getFontWeight(), QQuickSpinBoxPrivate::handleRelease(), QtWaylandClient::QWaylandAdwaitaDecoration::handleTouch(), QAbstractItemView::horizontalScrollbarValueChanged(), QListView::indexAt(), QQuickUniversalTheme::initialize(), injectExtra(), QQuickContext2D::isPointInPath(), QQmlSettingsPrivate::load(), QAndroidInputContext::longPress(), macValue(), main(), matches(), QStandardItemModel::mimeData(), QWhatsThat::mousePressEvent(), QMenu::mousePressEvent(), QCalendarPopup::mousePressEvent(), QWidget::mousePressEvent(), QWhatsThat::mouseReleaseEvent(), QLineEdit::mouseReleaseEvent(), QPlainTextEdit::mouseReleaseEvent(), QTextEdit::mouseReleaseEvent(), QQmlLocalStorage::openDatabaseSync(), QQmlJS::Dom::FieldFilter::operator()(), parseCollection(), QQmlJS::Dom::AstRangesVisitor::preVisit(), AndroidPositioning::registerPositionInfoSource(), QGraphicsAnchorLayoutPrivate::restoreSimplifiedAnchor(), QPlatformScreen::screenForPosition(), QScroller::scroller(), QSslSocket::setActiveBackend(), QAVFCameraBase::setCustomFocusPoint(), QToolButton::setDefaultAction(), QGraphicsAnchorLayoutPrivate::setItemsGeometries(), QWasmMediaPlayer::setMedia(), QMacPrintEngine::setProperty(), QScrollerPrivate::setState(), QOffscreenWindow::setVisible(), QMdiSubWindow::setWidget(), QXcbWindow::setWindowFlags(), QTabBar::tabAt(), testInt(), QAndroidInputContext::touchDown(), QAbstractItemView::verticalScrollbarValueChanged(), and QQmlJS::Dom::QmlComponent::writeOut().

+ Here is the call graph for this function:

◆ matches()

static bool matches ( const QJsonObject & object,
const QString & osName,
const QVersionNumber & kernelVersion,
const QString & osRelease,
const QOpenGLConfig::Gpu & gpu )
static

Definition at line 270 of file qopengl.cpp.

References QJsonValue::Array, QSet< T >::constBegin(), QByteArray::contains(), contains(), QOpenGLConfig::Gpu::deviceId, QOpenGLConfig::Gpu::driverDescription, QOpenGLConfig::Gpu::driverVersion, QOpenGLConfig::Gpu::glVendor, QByteArray::isEmpty(), QVersionNumber::isNull(), it, matches(), msgSyntaxWarning(), QJsonValue::Null, QJsonValue::Object, qWarning, QJsonValue::Undefined, and QOpenGLConfig::Gpu::vendorId.

Referenced by findFileRecursion(), findSharedLibraries(), matches(), QMimeDatabasePrivate::mimeTypeForFileExtension(), QMimeDatabase::mimeTypesForFileName(), QTest::qPrintTestSlots(), and readGpuFeatures().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ msgSyntaxWarning()

static QString msgSyntaxWarning ( const QJsonObject & object,
const QString & what )
static

Definition at line 258 of file qopengl.cpp.

Referenced by matches().

+ Here is the caller graph for this function:

◆ operator<<()

QDebug operator<< ( QDebug d,
const QOpenGLConfig::Gpu & g )

Definition at line 99 of file qopengl.cpp.

References d, Qt::hex(), and Qt::showbase().

+ Here is the call graph for this function:

◆ readGpuFeatures() [1/3]

static bool readGpuFeatures ( const QOpenGLConfig::Gpu & gpu,
const QString & osName,
const QVersionNumber & kernelVersion,
const QString & osRelease,
const QByteArray & jsonAsciiData,
QSet< QString > * result,
QString * errorMessage )
static

Definition at line 376 of file qopengl.cpp.

References error, errorMessage(), QJsonDocument::fromJson(), QByteArrayView::left(), readGpuFeatures(), and str.

+ Here is the call graph for this function:

◆ readGpuFeatures() [2/3]

static bool readGpuFeatures ( const QOpenGLConfig::Gpu & gpu,
const QString & osName,
const QVersionNumber & kernelVersion,
const QString & osRelease,
const QJsonDocument & doc,
QSet< QString > * result,
QString * errorMessage )
static

Definition at line 343 of file qopengl.cpp.

References errorMessage(), QJsonArray::insert(), matches(), QJsonDocument::object(), and QJsonObject::value().

Referenced by QOpenGLConfig::gpuFeatures(), QOpenGLConfig::gpuFeatures(), readGpuFeatures(), and readGpuFeatures().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readGpuFeatures() [3/3]

static bool readGpuFeatures ( const QOpenGLConfig::Gpu & gpu,
const QString & osName,
const QVersionNumber & kernelVersion,
const QString & osRelease,
const QString & fileName,
QSet< QString > * result,
QString * errorMessage )
static

Definition at line 399 of file qopengl.cpp.

References errorMessage(), QIODevice::errorString(), file, fileName, QFile::open(), QIODevice::readAll(), readGpuFeatures(), QIODeviceBase::ReadOnly, str, and QDir::toNativeSeparators().

+ Here is the call graph for this function: