![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#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. | |
| Public Member Functions inherited from QPlatformOpenGLContext | |
| QPlatformOpenGLContext () | |
| virtual | ~QPlatformOpenGLContext () |
| virtual void | initialize () |
| Called after a new instance is constructed. | |
| 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. | |
| QOpenGLContext * | context () const |
Static Public Member Functions | |
| static void | destroyWebGLContext (QPlatformSurface *surface) |
| Static Public Member Functions inherited from QPlatformOpenGLContext | |
| static bool | parseOpenGLVersion (const QByteArray &versionString, int &major, int &minor) |
Definition at line 20 of file qwasmopenglcontext.h.
|
explicit |
Definition at line 26 of file qwasmopenglcontext.cpp.
References QWasmOpenGLContext().
Referenced by QWasmOpenGLContext(), and QWasmIntegration::createPlatformOpenGLContext().
| QWasmOpenGLContext::~QWasmOpenGLContext | ( | ) |
Definition at line 39 of file qwasmopenglcontext.cpp.
References destroyWebGLContext().
|
overridevirtual |
Reimplement in subclass if your platform uses framebuffer objects for surfaces.
The default implementation returns 0.
Reimplemented from QPlatformOpenGLContext.
Definition at line 132 of file qwasmopenglcontext.cpp.
|
static |
Definition at line 54 of file qwasmopenglcontext.cpp.
References destroyWebGLContext().
Referenced by ~QWasmOpenGLContext(), QWasmWindow::~QWasmWindow(), and destroyWebGLContext().
|
overridevirtual |
Implements QPlatformOpenGLContext.
Definition at line 174 of file qwasmopenglcontext.cpp.
|
overridevirtual |
Implements QPlatformOpenGLContext.
Definition at line 127 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 209 of file qwasmopenglcontext.cpp.
|
overridevirtual |
Reimplemented from QPlatformOpenGLContext.
Definition at line 179 of file qwasmopenglcontext.cpp.
|
overridevirtual |
Reimplemented from QPlatformOpenGLContext.
Definition at line 187 of file qwasmopenglcontext.cpp.
|
overridevirtual |
Implements QPlatformOpenGLContext.
Definition at line 137 of file qwasmopenglcontext.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 168 of file qwasmopenglcontext.cpp.