Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QXcbEglContext Class Reference

#include <qxcbeglcontext.h>

Inheritance diagram for QXcbEglContext:
Collaboration diagram for QXcbEglContext:

Public Member Functions

 QXcbEglContext (const QSurfaceFormat &glFormat, QPlatformOpenGLContext *share, EGLDisplay display)
void swapBuffers (QPlatformSurface *surface) override
 Reimplement in subclass to native swap buffers calls.
bool makeCurrent (QPlatformSurface *surface) override
void doneCurrent () override
EGLSurface eglSurfaceForPlatformSurface (QPlatformSurface *surface) override
 QEGLPlatformContext (const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display, EGLConfig *config=nullptr, Flags flags={ })
 QEGLPlatformContext ()
Public Member Functions inherited from QEGLPlatformContext
 QEGLPlatformContext (const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display, EGLConfig *config=nullptr, Flags flags={ })
 ~QEGLPlatformContext ()
void initialize () override
 Called after a new instance is constructed.
QFunctionPointer getProcAddress (const char *procName) override
 Reimplement in subclass to allow dynamic querying of OpenGL symbols.
QSurfaceFormat format () const override
bool isSharing () const override
bool isValid () const override
EGLContext nativeContext () const override
EGLConfig config () const override
EGLDisplay display () const override
virtual void invalidateContext () override
EGLContext eglContext () const
EGLDisplay eglDisplay () const
EGLConfig eglConfig () const
Public Member Functions inherited from QPlatformOpenGLContext
 QPlatformOpenGLContext ()
virtual ~QPlatformOpenGLContext ()
virtual GLuint defaultFramebufferObject (QPlatformSurface *surface) const
 Reimplement in subclass if your platform uses framebuffer objects for surfaces.
virtual void beginFrame ()
 Called when the RHI begins rendering a new frame in the context.
virtual void endFrame ()
 Called when the RHI ends rendering a in the context.
QOpenGLContextcontext () const

Additional Inherited Members

Public Types inherited from QEGLPlatformContext
enum  Flag { NoSurfaceless = 0x01 }
Static Public Member Functions inherited from QEGLPlatformContext
template<typename T>
static QOpenGLContextcreateFrom (EGLContext context, EGLDisplay contextDisplay, EGLDisplay platformDisplay, QOpenGLContext *shareContext)
Static Public Member Functions inherited from QPlatformOpenGLContext
static bool parseOpenGLVersion (const QByteArray &versionString, int &major, int &minor)
Protected Member Functions inherited from QEGLPlatformContext
 QEGLPlatformContext ()
virtual EGLSurface createTemporaryOffscreenSurface ()
virtual void destroyTemporaryOffscreenSurface (EGLSurface surface)
virtual void runGLChecks ()
bool checkGraphicsReset ()

Detailed Description

Definition at line 13 of file qxcbeglcontext.h.

Constructor & Destructor Documentation

◆ QXcbEglContext()

QXcbEglContext::QXcbEglContext ( const QSurfaceFormat & glFormat,
QPlatformOpenGLContext * share,
EGLDisplay display )
inline

Definition at line 17 of file qxcbeglcontext.h.

References QXcbEglContext().

Referenced by QXcbEglContext().

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

Member Function Documentation

◆ doneCurrent()

void QXcbEglContext::doneCurrent ( )
inlineoverridevirtual

Reimplemented from QEGLPlatformContext.

Definition at line 40 of file qxcbeglcontext.h.

◆ eglSurfaceForPlatformSurface()

EGLSurface QXcbEglContext::eglSurfaceForPlatformSurface ( QPlatformSurface * surface)
inlineoverridevirtual

Implements QEGLPlatformContext.

Definition at line 45 of file qxcbeglcontext.h.

◆ makeCurrent()

bool QXcbEglContext::makeCurrent ( QPlatformSurface * surface)
inlineoverridevirtual

Reimplemented from QEGLPlatformContext.

Definition at line 35 of file qxcbeglcontext.h.

◆ QEGLPlatformContext() [1/2]

QEGLPlatformContext::QEGLPlatformContext ( )
inline

Definition at line 85 of file qeglplatformcontext_p.h.

◆ QEGLPlatformContext() [2/2]

QEGLPlatformContext::QEGLPlatformContext ( const QSurfaceFormat & format,
QPlatformOpenGLContext * share,
EGLDisplay display,
EGLConfig * config = nullptr,
Flags flags = { } )

Definition at line 36 of file qeglplatformcontext.cpp.

◆ swapBuffers()

void QXcbEglContext::swapBuffers ( QPlatformSurface * surface)
inlineoverridevirtual

Reimplement in subclass to native swap buffers calls.

The implementation must support being called in a thread different than the gui-thread.

Reimplemented from QEGLPlatformContext.

Definition at line 22 of file qxcbeglcontext.h.


The documentation for this class was generated from the following file: