![]() |
Qt 6.x
The Qt SDK
|
#include <QtCore/qbytearray.h>
#include <QtGui/qopenglcontext.h>
#include <QtGui/private/qmath_p.h>
#include "qeglconvenience_p.h"
Go to the source code of this file.
Classes | |
struct | AttrInfo |
Macros | |
#define | EGL_OPENGL_ES3_BIT_KHR 0x0040 |
Functions | |
QT_BEGIN_NAMESPACE QList< EGLint > | q_createConfigAttributesFromFormat (const QSurfaceFormat &format) |
bool | q_reduceConfigAttributes (QList< EGLint > *configAttributes) |
EGLConfig | q_configFromGLFormat (EGLDisplay display, const QSurfaceFormat &format, bool highestPixelFormat, int surfaceType) |
QSurfaceFormat | q_glFormatFromConfig (EGLDisplay display, const EGLConfig config, const QSurfaceFormat &referenceFormat) |
bool | q_hasEglExtension (EGLDisplay display, const char *extensionName) |
void | q_printEglConfig (EGLDisplay display, EGLConfig config) |
Variables | |
static struct AttrInfo | attrs [] |
#define EGL_OPENGL_ES3_BIT_KHR 0x0040 |
Definition at line 17 of file qeglconvenience.cpp.
EGLConfig q_configFromGLFormat | ( | EGLDisplay | display, |
const QSurfaceFormat & | format, | ||
bool | highestPixelFormat, | ||
int | surfaceType | ||
) |
Definition at line 319 of file qeglconvenience.cpp.
References QEglConfigChooser::chooseConfig(), QEglConfigChooser::setIgnoreColorChannels(), QEglConfigChooser::setSurfaceFormat(), and QEglConfigChooser::setSurfaceType().
Referenced by QAndroidPlatformOffscreenSurface::QAndroidPlatformOffscreenSurface(), QEglFSOffscreenWindow::QEglFSOffscreenWindow(), QEGLPbuffer::QEGLPbuffer(), QEGLPlatformContext::QEGLPlatformContext(), QEGLPlatformContext::createTemporaryOffscreenSurface(), QEglFSContext::createTemporaryOffscreenSurface(), QDirectFbWindowEGL::eglSurface(), QXcbEglWindow::resolveFormat(), and QtWaylandClient::QWaylandEglWindow::updateSurface().
QT_BEGIN_NAMESPACE QList< EGLint > q_createConfigAttributesFromFormat | ( | const QSurfaceFormat & | format | ) |
Definition at line 22 of file qeglconvenience.cpp.
References QList< T >::append(), and QSurfaceFormat::OpenVG.
Referenced by QEglConfigChooser::chooseConfig().
QSurfaceFormat q_glFormatFromConfig | ( | EGLDisplay | display, |
const EGLConfig | config, | ||
const QSurfaceFormat & | referenceFormat | ||
) |
Definition at line 329 of file qeglconvenience.cpp.
References QSurfaceFormat::DefaultRenderableType, QOpenGLContext::LibGL, QSurfaceFormat::OpenGL, QSurfaceFormat::OpenGLES, QOpenGLContext::openGLModuleType(), QSurfaceFormat::OpenVG, QSurfaceFormat::renderableType(), and QSurfaceFormat::swapInterval().
Referenced by QEglFSOffscreenWindow::QEglFSOffscreenWindow(), QEGLPbuffer::QEGLPbuffer(), QEGLPlatformContext::QEGLPlatformContext(), QAndroidPlatformOpenGLWindow::createEgl(), QEglFSWindow::resetSurface(), QEglFSKmsGbmWindow::resetSurface(), QEglFSKmsEglDeviceWindow::resetSurface(), QEglFSKmsVsp2Window::resetSurface(), QXcbEglWindow::resolveFormat(), and QtWaylandClient::QWaylandEglWindow::updateSurface().
bool q_hasEglExtension | ( | EGLDisplay | display, |
const char * | extensionName | ||
) |
Definition at line 385 of file qeglconvenience.cpp.
References QListSpecialMethodsBase< T >::contains(), and QByteArray::split().
Referenced by QEGLPbuffer::QEGLPbuffer(), QEGLPlatformContext::QEGLPlatformContext(), QEglConfigChooser::chooseConfig(), QXcbEglIntegration::getCompatibleVisualId(), QtWaylandClient::QWaylandEglClientBufferIntegration::initialize(), and QEglFSKmsGbmWindow::resetSurface().
void q_printEglConfig | ( | EGLDisplay | display, |
EGLConfig | config | ||
) |
Definition at line 424 of file qeglconvenience.cpp.
References AttrInfo::attr, attrs, and qDebug.
Referenced by QEGLPlatformContext::QEGLPlatformContext().
bool q_reduceConfigAttributes | ( | QList< EGLint > * | configAttributes | ) |
Definition at line 89 of file qeglconvenience.cpp.
References QList< T >::at(), i, QListSpecialMethodsBase< T >::indexOf(), qMin(), QList< T >::remove(), QList< T >::replace(), and QList< T >::value().
Referenced by QEglConfigChooser::chooseConfig().
|
static |
Definition at line 394 of file qeglconvenience.cpp.
Referenced by org.qtproject.qt.android.QtLayout::QtLayout(), org.qtproject.qt.android.QtLayout::QtLayout(), QQuickShapeStrokeNode::attributes(), QQuickPath::attributes(), QSSGRhiInputAssemblerState::bakeVertexInputLocations(), buildMetaObject(), Collector::collect(), collectProperty(), QV4::Property::completed(), QV4::Property::copy(), QX11PlatformPixmap::copy(), QV4::ExecutionContext::createMutableBinding(), QV4::Heap::DECLARE_HEAP_OBJECT(), QSGGeometry::defaultAttributes_ColoredPoint2D(), QSGGeometry::defaultAttributes_Point2D(), QSGGeometry::defaultAttributes_TexturedPoint2D(), QV4::Object::defineOwnProperty(), QX11PaintEngine::end(), QX11PaintEnginePrivate::fillPolygon_dev(), QV4::ObjectPrototype::fromPropertyDescriptor(), QV4::Heap::InternalClass::frozen(), QV4::Property::fullyPopulated(), QV4::Object::getValue(), QV4::Object::getValue(), QV4::Object::getValueAccessor(), QV4::Object::getValueByIndex(), QV4::Object::getValueOrSetter(), QV4::ArrayData::hasAttributes(), QV4::Property::isCompatible(), QV4::Heap::InternalClass::isImplicitlyFrozen(), QV4::Property::isSubset(), QV4::Property::merge(), QV4::ObjectPrototype::method_assign(), QV4::ObjectPrototype::method_defineProperties(), QV4::ObjectPrototype::method_defineProperty(), QV4::Reflect::method_defineProperty(), QV4::ObjectPrototype::method_getOwnPropertyDescriptor(), QV4::ObjectPrototype::method_getOwnPropertyDescriptors(), QV4::ObjectPrototype::method_propertyIsEnumerable(), QV4::ObjectPrototype::method_values(), ModuleNamespaceIterator::next(), QV4::ObjectOwnPropertyKeyIterator::next(), ProxyObjectOwnPropertyKeyIterator::next(), QV4::QObjectWrapperOwnPropertyKeyIterator::next(), QV4::SequenceOwnPropertyKeyIterator::next(), TypedArrayOwnPropertyKeyIterator::next(), QmlListWrapperOwnPropertyKeyIterator::next(), QV4::QQmlValueTypeWrapperOwnPropertyKeyIterator::next(), QV4::ModelObjectOwnPropertyKeyIterator::next(), StringObjectOwnPropertyKeyIterator::next(), UrlSearchParamsObjectOwnPropertyKeyIterator::next(), QV4::ObjectIterator::next(), QTextEngine::nextLogicalPosition(), QV4::ForInIteratorObject::nextProperty(), QV4::ObjectIterator::nextPropertyName(), QV4::ObjectIterator::nextPropertyNameAsString(), QV4::ObjectIterator::nextPropertyNameAsString(), org.qtproject.qt.android.bindings.QtActivity::onCreateView(), org.qtproject.qt.android.bindings.QtActivity::onCreateView(), QTextHtmlParser::parseAttributes(), parseStopNode(), parseStyle(), QTextEngine::positionInLigature(), QTextEngine::previousLogicalPosition(), propagateAttributes(), QV4::Object::putValue(), q_printEglConfig(), QV4::Lookup::resolveProtoGetter(), QV4::Heap::InternalClass::sealed(), QX11PlatformPixmap::setMask(), QT_BEGIN_NAMESPACE::smoothAttributeSet(), QT_BEGIN_NAMESPACE::smoothImageAttributeSet(), org.qtproject.qt.android.bindings.QtActivity::super_onCreateView(), org.qtproject.qt.android.bindings.QtActivity::super_onCreateView(), QV4::ObjectPrototype::toPropertyDescriptor(), QX11PaintEngine::updateBrush(), QX11PaintEngine::updateRenderHints(), QV4::ArgumentsObject::virtualDefineOwnProperty(), QV4::Object::virtualDefineOwnProperty(), QV4::ArrayObject::virtualDefineOwnProperty(), QV4::ProxyObject::virtualDefineOwnProperty(), QV4::TypedArray::virtualDefineOwnProperty(), QV4::ArgumentsObject::virtualGetOwnProperty(), QV4::Object::virtualGetOwnProperty(), QV4::ProxyObject::virtualOwnPropertyKeys(), QV4::Object::virtualResolveLookupGetter(), and x11ClearClipRegion().