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_p.h File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

#include <QtGui/qsurfaceformat.h>
#include <QtCore/qlist.h>
#include <QtCore/qsize.h>
#include <QtGui/private/qt_egl_p.h>
+ Include dependency graph for qeglconvenience_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QEglConfigChooser
 

Functions

QT_BEGIN_NAMESPACE Q_GUI_EXPORT QList< EGLint > q_createConfigAttributesFromFormat (const QSurfaceFormat &format)
 
Q_GUI_EXPORT bool q_reduceConfigAttributes (QList< EGLint > *configAttributes)
 
Q_GUI_EXPORT EGLConfig q_configFromGLFormat (EGLDisplay display, const QSurfaceFormat &format, bool highestPixelFormat=false, int surfaceType=EGL_WINDOW_BIT)
 
Q_GUI_EXPORT QSurfaceFormat q_glFormatFromConfig (EGLDisplay display, const EGLConfig config, const QSurfaceFormat &referenceFormat={})
 
Q_GUI_EXPORT bool q_hasEglExtension (EGLDisplay display, const char *extensionName)
 
Q_GUI_EXPORT void q_printEglConfig (EGLDisplay display, EGLConfig config)
 

Function Documentation

◆ q_configFromGLFormat()

Q_GUI_EXPORT EGLConfig q_configFromGLFormat ( EGLDisplay display,
const QSurfaceFormat & format,
bool highestPixelFormat = false,
int surfaceType = EGL_WINDOW_BIT )

◆ q_createConfigAttributesFromFormat()

QT_BEGIN_NAMESPACE Q_GUI_EXPORT 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()

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

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

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

Q_GUI_EXPORT 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: