![]() |
Qt 6.x
The Qt SDK
|
#include <qwaylandbrcmglcontext.h>
Public Member Functions | |
QWaylandBrcmGLContext (EGLDisplay eglDisplay, const QSurfaceFormat &format, QPlatformOpenGLContext *share) | |
~QWaylandBrcmGLContext () | |
void | swapBuffers (QPlatformSurface *surface) override |
Reimplement in subclass to native swap buffers calls. | |
bool | makeCurrent (QPlatformSurface *surface) override |
void | doneCurrent () override |
QFunctionPointer | getProcAddress (const char *procName) override |
Reimplement in subclass to allow dynamic querying of OpenGL symbols. | |
QSurfaceFormat | format () const override |
EGLConfig | eglConfig () const |
EGLContext | eglContext () const |
![]() | |
QPlatformOpenGLContext () | |
virtual | ~QPlatformOpenGLContext () |
virtual void | initialize () |
Called after a new instance is constructed. | |
virtual QSurfaceFormat | format () const =0 |
virtual void | swapBuffers (QPlatformSurface *surface)=0 |
Reimplement in subclass to native swap buffers calls. | |
virtual GLuint | defaultFramebufferObject (QPlatformSurface *surface) const |
Reimplement in subclass if your platform uses framebuffer objects for surfaces. | |
virtual bool | makeCurrent (QPlatformSurface *surface)=0 |
virtual void | doneCurrent ()=0 |
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. | |
virtual bool | isSharing () const |
virtual bool | isValid () const |
virtual QFunctionPointer | getProcAddress (const char *procName)=0 |
Reimplement in subclass to allow dynamic querying of OpenGL symbols. | |
QOpenGLContext * | context () const |
Additional Inherited Members | |
![]() | |
static bool | parseOpenGLVersion (const QByteArray &versionString, int &major, int &minor) |
Definition at line 19 of file qwaylandbrcmglcontext.h.
QtWaylandClient::QWaylandBrcmGLContext::QWaylandBrcmGLContext | ( | EGLDisplay | eglDisplay, |
const QSurfaceFormat & | format, | ||
QPlatformOpenGLContext * | share | ||
) |
Definition at line 23 of file qwaylandbrcmglcontext.cpp.
References QList< T >::append(), QList< T >::constData(), and eglContext().
QtWaylandClient::QWaylandBrcmGLContext::~QWaylandBrcmGLContext | ( | ) |
Definition at line 41 of file qwaylandbrcmglcontext.cpp.
|
overridevirtual |
Implements QPlatformOpenGLContext.
Definition at line 51 of file qwaylandbrcmglcontext.cpp.
EGLConfig QtWaylandClient::QWaylandBrcmGLContext::eglConfig | ( | ) | const |
Definition at line 69 of file qwaylandbrcmglcontext.cpp.
|
inline |
Definition at line 34 of file qwaylandbrcmglcontext.h.
Referenced by QWaylandBrcmGLContext().
|
inlineoverridevirtual |
Implements QPlatformOpenGLContext.
Definition at line 31 of file qwaylandbrcmglcontext.h.
|
overridevirtual |
Reimplement in subclass to allow dynamic querying of OpenGL symbols.
As opposed to e.g. the wglGetProcAddress function on Windows, Qt expects this methods to be able to return valid function pointers even for standard OpenGL symbols.
Implements QPlatformOpenGLContext.
Definition at line 61 of file qwaylandbrcmglcontext.cpp.
|
overridevirtual |
Implements QPlatformOpenGLContext.
Definition at line 46 of file qwaylandbrcmglcontext.cpp.
References makeCurrent().
Referenced by makeCurrent().
|
overridevirtual |
Reimplement in subclass to native swap buffers calls.
The implementation must support being called in a thread different than the gui-thread.
Implements QPlatformOpenGLContext.
Definition at line 56 of file qwaylandbrcmglcontext.cpp.
References swapBuffers().
Referenced by swapBuffers().