![]() |
Qt 6.x
The Qt SDK
|
#include <qwasmopenglcontext.h>
Public Member Functions | |
QWasmOpenGLContext (QOpenGLContext *context) | |
~QWasmOpenGLContext () | |
QSurfaceFormat | format () const override |
void | swapBuffers (QPlatformSurface *surface) override |
Reimplement in subclass to native swap buffers calls. | |
GLuint | defaultFramebufferObject (QPlatformSurface *surface) const override |
Reimplement in subclass if your platform uses framebuffer objects for surfaces. | |
bool | makeCurrent (QPlatformSurface *surface) override |
void | doneCurrent () override |
bool | isSharing () const override |
bool | isValid () const override |
QFunctionPointer | getProcAddress (const char *procName) override |
Reimplement in subclass to allow dynamic querying of OpenGL symbols. | |
![]() | |
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 17 of file qwasmopenglcontext.h.
|
explicit |
Definition at line 23 of file qwasmopenglcontext.cpp.
References QSurfaceFormat::depthBufferSize(), QSurfaceFormat::OpenGLES, QSurfaceFormat::setDepthBufferSize(), QSurfaceFormat::setRenderableType(), QSurfaceFormat::setStencilBufferSize(), and QSurfaceFormat::stencilBufferSize().
QWasmOpenGLContext::~QWasmOpenGLContext | ( | ) |
Definition at line 36 of file qwasmopenglcontext.cpp.
|
overridevirtual |
Reimplement in subclass if your platform uses framebuffer objects for surfaces.
The default implementation returns 0.
Reimplemented from QPlatformOpenGLContext.
Definition at line 139 of file qwasmopenglcontext.cpp.
References QPlatformOpenGLContext::defaultFramebufferObject().
|
overridevirtual |
Implements QPlatformOpenGLContext.
Definition at line 161 of file qwasmopenglcontext.cpp.
|
overridevirtual |
Implements QPlatformOpenGLContext.
Definition at line 134 of file qwasmopenglcontext.cpp.
|
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 181 of file qwasmopenglcontext.cpp.
|
overridevirtual |
Reimplemented from QPlatformOpenGLContext.
Definition at line 166 of file qwasmopenglcontext.cpp.
References QOpenGLContext::shareContext().
|
overridevirtual |
Reimplemented from QPlatformOpenGLContext.
Definition at line 171 of file qwasmopenglcontext.cpp.
|
overridevirtual |
Implements QPlatformOpenGLContext.
Definition at line 144 of file qwasmopenglcontext.cpp.
References QPlatformOpenGLContext::context().
|
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 155 of file qwasmopenglcontext.cpp.
References Q_UNUSED.