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
QtWaylandClient::QWaylandGLContext Class Reference

#include <qwaylandglcontext_p.h>

Inheritance diagram for QtWaylandClient::QWaylandGLContext:
Collaboration diagram for QtWaylandClient::QWaylandGLContext:

Public Member Functions

 QWaylandGLContext ()
 QWaylandGLContext (EGLDisplay eglDisplay, QWaylandDisplay *displaydisplay, const QSurfaceFormat &formatformat, QPlatformOpenGLContext *share)
 ~QWaylandGLContext ()
void swapBuffers (QPlatformSurface *surface) override
 Reimplement in subclass to native swap buffers calls.
bool makeCurrent (QPlatformSurface *surface) override
void doneCurrent () override
void beginFrame () override
 Called when the RHI begins rendering a new frame in the context.
void endFrame () override
 Called when the RHI ends rendering a in the context.
Public Member Functions inherited from QEGLPlatformContext
 QEGLPlatformContext (const QSurfaceFormat &formatformat, QPlatformOpenGLContext *share, EGLDisplay displaydisplay, EGLConfig *configconfig=nullptr, Flags flagsflags={ })
 ~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.
QOpenGLContext * context () const

Protected Member Functions

EGLSurface eglSurfaceForPlatformSurface (QPlatformSurface *surface) override
EGLSurface createTemporaryOffscreenSurface () override
void destroyTemporaryOffscreenSurface (EGLSurface surface) override
void runGLChecks () override
Protected Member Functions inherited from QEGLPlatformContext
 QEGLPlatformContext ()
bool checkGraphicsReset ()

Additional Inherited Members

Public Types inherited from QEGLPlatformContext
enum  Flag { NoSurfaceless = 0x01 }
Static Public Member Functions inherited from QEGLPlatformContext
template<typename T>
static QOpenGLContext * createFrom (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)

Detailed Description

Definition at line 22 of file qwaylandglcontext_p.h.

Constructor & Destructor Documentation

◆ QWaylandGLContext() [1/2]

QtWaylandClient::QWaylandGLContext::QWaylandGLContext ( )

Definition at line 104 of file qwaylandglcontext.cpp.

◆ QWaylandGLContext() [2/2]

QtWaylandClient::QWaylandGLContext::QWaylandGLContext ( EGLDisplay eglDisplay,
QWaylandDisplay * display,
const QSurfaceFormat & format,
QPlatformOpenGLContext * share )

Definition at line 110 of file qwaylandglcontext.cpp.

◆ ~QWaylandGLContext()

QtWaylandClient::QWaylandGLContext::~QWaylandGLContext ( )

Definition at line 198 of file qwaylandglcontext.cpp.

Member Function Documentation

◆ beginFrame()

void QtWaylandClient::QWaylandGLContext::beginFrame ( )
overridevirtual

Called when the RHI begins rendering a new frame in the context.

Will always be paired with a call to \l endFrame().

Reimplemented from QPlatformOpenGLContext.

Definition at line 203 of file qwaylandglcontext.cpp.

◆ createTemporaryOffscreenSurface()

EGLSurface QtWaylandClient::QWaylandGLContext::createTemporaryOffscreenSurface ( )
overrideprotectedvirtual

Reimplemented from QEGLPlatformContext.

Definition at line 151 of file qwaylandglcontext.cpp.

◆ destroyTemporaryOffscreenSurface()

void QtWaylandClient::QWaylandGLContext::destroyTemporaryOffscreenSurface ( EGLSurface surface)
overrideprotectedvirtual

Reimplemented from QEGLPlatformContext.

Definition at line 164 of file qwaylandglcontext.cpp.

◆ doneCurrent()

void QtWaylandClient::QWaylandGLContext::doneCurrent ( )
overridevirtual

Reimplemented from QEGLPlatformContext.

Definition at line 272 of file qwaylandglcontext.cpp.

◆ eglSurfaceForPlatformSurface()

EGLSurface QtWaylandClient::QWaylandGLContext::eglSurfaceForPlatformSurface ( QPlatformSurface * surface)
overrideprotectedvirtual

Implements QEGLPlatformContext.

Definition at line 300 of file qwaylandglcontext.cpp.

◆ endFrame()

void QtWaylandClient::QWaylandGLContext::endFrame ( )
overridevirtual

Called when the RHI ends rendering a in the context.

Is always preceded by a call to \l beginFrame().

Reimplemented from QPlatformOpenGLContext.

Definition at line 212 of file qwaylandglcontext.cpp.

◆ makeCurrent()

bool QtWaylandClient::QWaylandGLContext::makeCurrent ( QPlatformSurface * surface)
overridevirtual

Reimplemented from QEGLPlatformContext.

Definition at line 228 of file qwaylandglcontext.cpp.

◆ runGLChecks()

void QtWaylandClient::QWaylandGLContext::runGLChecks ( )
overrideprotectedvirtual

Reimplemented from QEGLPlatformContext.

Definition at line 173 of file qwaylandglcontext.cpp.

◆ swapBuffers()

void QtWaylandClient::QWaylandGLContext::swapBuffers ( QPlatformSurface * surface)
overridevirtual

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 278 of file qwaylandglcontext.cpp.


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