![]() |
Qt 6.x
The Qt SDK
|
#include <qandroidplatformopenglcontext.h>
Public Member Functions | |
QAndroidPlatformOpenGLContext (const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display) | |
void | swapBuffers (QPlatformSurface *surface) override |
Reimplement in subclass to native swap buffers calls. | |
bool | makeCurrent (QPlatformSurface *surface) override |
QEGLPlatformContext (const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display, EGLConfig *config=nullptr, Flags flags={ }) | |
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. | |
bool | makeCurrent (QPlatformSurface *surface) override |
void | doneCurrent () override |
void | swapBuffers (QPlatformSurface *surface) override |
Reimplement in subclass to native swap buffers calls. | |
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 |
![]() | |
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 |
Private Member Functions | |
EGLSurface | eglSurfaceForPlatformSurface (QPlatformSurface *surface) override |
Additional Inherited Members | |
![]() | |
enum | Flag { NoSurfaceless = 0x01 } |
![]() | |
template<typename T > | |
static QOpenGLContext * | createFrom (EGLContext context, EGLDisplay contextDisplay, EGLDisplay platformDisplay, QOpenGLContext *shareContext) |
![]() | |
static bool | parseOpenGLVersion (const QByteArray &versionString, int &major, int &minor) |
![]() | |
QEGLPlatformContext () | |
virtual EGLSurface | eglSurfaceForPlatformSurface (QPlatformSurface *surface)=0 |
virtual EGLSurface | createTemporaryOffscreenSurface () |
virtual void | destroyTemporaryOffscreenSurface (EGLSurface surface) |
virtual void | runGLChecks () |
Definition at line 12 of file qandroidplatformopenglcontext.h.
QT_BEGIN_NAMESPACE QAndroidPlatformOpenGLContext::QAndroidPlatformOpenGLContext | ( | const QSurfaceFormat & | format, |
QPlatformOpenGLContext * | share, | ||
EGLDisplay | display | ||
) |
Definition at line 18 of file qandroidplatformopenglcontext.cpp.
|
overrideprivatevirtual |
Implements QEGLPlatformContext.
Definition at line 38 of file qandroidplatformopenglcontext.cpp.
References QEGLPlatformContext::eglConfig(), QPlatformSurface::surface(), QSurface::surfaceClass(), and QSurface::Window.
|
overridevirtual |
Implements QPlatformOpenGLContext.
Definition at line 33 of file qandroidplatformopenglcontext.cpp.
References QEGLPlatformContext::makeCurrent().
|
inline |
Definition at line 85 of file qeglplatformcontext_p.h.
QEGLPlatformContext::QEGLPlatformContext | ( | const QSurfaceFormat & | format, |
QPlatformOpenGLContext * | share, | ||
EGLDisplay | display, | ||
EGLConfig * | config = nullptr , |
||
Flags | flags = { } |
||
) |
Definition at line 36 of file qeglplatformcontext.cpp.
|
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 23 of file qandroidplatformopenglcontext.cpp.
References QAndroidPlatformOpenGLWindow::checkNativeSurface(), QEGLPlatformContext::eglConfig(), QEGLPlatformContext::makeCurrent(), QPlatformSurface::surface(), QSurface::surfaceClass(), QEGLPlatformContext::swapBuffers(), and QSurface::Window.