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
qeglconvenience.cpp File Reference

(4538bbf4a68a80f09cad8749a2b05bfb8ce4290c)

#include <QtCore/qbytearray.h>
#include <QtGui/qopenglcontext.h>
#include <QtGui/private/qmath_p.h>
#include "qeglconvenience_p.h"
+ Include dependency graph for qeglconvenience.cpp:

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 []
 

Macro Definition Documentation

◆ EGL_OPENGL_ES3_BIT_KHR

#define EGL_OPENGL_ES3_BIT_KHR   0x0040

Definition at line 17 of file qeglconvenience.cpp.

Referenced by QEglConfigChooser::chooseConfig().

Function Documentation

◆ q_configFromGLFormat()

EGLConfig q_configFromGLFormat ( EGLDisplay display,
const QSurfaceFormat & format,
bool highestPixelFormat,
int surfaceType )

◆ q_createConfigAttributesFromFormat()

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().

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

◆ q_glFormatFromConfig()

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(), and QSurfaceFormat::OpenVG.

Referenced by QEglFSOffscreenWindow::QEglFSOffscreenWindow(), QEGLPbuffer::QEGLPbuffer(), QEGLPlatformContext::QEGLPlatformContext(), QAndroidPlatformOpenGLWindow::createEgl(), QEglFSWindow::resetSurface(), QEglFSKmsGbmWindow::resetSurface(), QEglFSKmsEglDeviceWindow::resetSurface(), QEglFSKmsVsp2Window::resetSurface(), QXcbEglWindow::resolveFormat(), and QtWaylandClient::QWaylandEglWindow::updateSurface().

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

◆ q_hasEglExtension()

bool q_hasEglExtension ( EGLDisplay display,
const char * extensionName )

Definition at line 385 of file qeglconvenience.cpp.

References QByteArray().

Referenced by QEGLPbuffer::QEGLPbuffer(), QEGLPlatformContext::QEGLPlatformContext(), QEglConfigChooser::chooseConfig(), QXcbEglIntegration::getCompatibleVisualId(), QtWaylandClient::QWaylandEglClientBufferIntegration::initialize(), and QEglFSKmsGbmWindow::resetSurface().

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

◆ q_printEglConfig()

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().

+ Here is the caller graph for this function:

◆ q_reduceConfigAttributes()

bool q_reduceConfigAttributes ( QList< EGLint > * configAttributes)

Definition at line 89 of file qeglconvenience.cpp.

References i, and qMin().

Referenced by QEglConfigChooser::chooseConfig().

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

Variable Documentation

◆ attrs

struct AttrInfo attrs[]
static
Initial value:
= {
{EGL_BUFFER_SIZE, "EGL_BUFFER_SIZE"},
{EGL_ALPHA_SIZE, "EGL_ALPHA_SIZE"},
{EGL_BLUE_SIZE, "EGL_BLUE_SIZE"},
{EGL_GREEN_SIZE, "EGL_GREEN_SIZE"},
{EGL_RED_SIZE, "EGL_RED_SIZE"},
{EGL_DEPTH_SIZE, "EGL_DEPTH_SIZE"},
{EGL_STENCIL_SIZE, "EGL_STENCIL_SIZE"},
{EGL_CONFIG_CAVEAT, "EGL_CONFIG_CAVEAT"},
{EGL_CONFIG_ID, "EGL_CONFIG_ID"},
{EGL_LEVEL, "EGL_LEVEL"},
{EGL_MAX_PBUFFER_HEIGHT, "EGL_MAX_PBUFFER_HEIGHT"},
{EGL_MAX_PBUFFER_PIXELS, "EGL_MAX_PBUFFER_PIXELS"},
{EGL_MAX_PBUFFER_WIDTH, "EGL_MAX_PBUFFER_WIDTH"},
{EGL_NATIVE_RENDERABLE, "EGL_NATIVE_RENDERABLE"},
{EGL_NATIVE_VISUAL_ID, "EGL_NATIVE_VISUAL_ID"},
{EGL_NATIVE_VISUAL_TYPE, "EGL_NATIVE_VISUAL_TYPE"},
{EGL_SAMPLES, "EGL_SAMPLES"},
{EGL_SAMPLE_BUFFERS, "EGL_SAMPLE_BUFFERS"},
{EGL_SURFACE_TYPE, "EGL_SURFACE_TYPE"},
{EGL_TRANSPARENT_TYPE, "EGL_TRANSPARENT_TYPE"},
{EGL_TRANSPARENT_BLUE_VALUE, "EGL_TRANSPARENT_BLUE_VALUE"},
{EGL_TRANSPARENT_GREEN_VALUE, "EGL_TRANSPARENT_GREEN_VALUE"},
{EGL_TRANSPARENT_RED_VALUE, "EGL_TRANSPARENT_RED_VALUE"},
{EGL_BIND_TO_TEXTURE_RGB, "EGL_BIND_TO_TEXTURE_RGB"},
{EGL_BIND_TO_TEXTURE_RGBA, "EGL_BIND_TO_TEXTURE_RGBA"},
{EGL_MIN_SWAP_INTERVAL, "EGL_MIN_SWAP_INTERVAL"},
{EGL_MAX_SWAP_INTERVAL, "EGL_MAX_SWAP_INTERVAL"},
{-1, nullptr}}

Definition at line 394 of file qeglconvenience.cpp.

Referenced by QSGCurveStrokeNode::attributes(), QQuickPath::attributes(), QSSGRhiHelpers::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(), 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(), 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().