![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qcocoaglcontext.h>
Public Member Functions | |
| QCocoaGLContext (QOpenGLContext *context) | |
| QCocoaGLContext (NSOpenGLContext *context) | |
| ~QCocoaGLContext () | |
| void | initialize () override |
| Called after a new instance is constructed. | |
| bool | makeCurrent (QPlatformSurface *surface) override |
| void | beginFrame () override |
| Called when the RHI begins rendering a new frame in the context. | |
| void | swapBuffers (QPlatformSurface *surface) override |
| Reimplement in subclass to native swap buffers calls. | |
| void | doneCurrent () override |
| void | update () |
| QSurfaceFormat | format () const override |
| bool | isSharing () const override |
| bool | isValid () const override |
| NSOpenGLContext * | nativeContext () const override |
| QFunctionPointer | getProcAddress (const char *procName) override |
| Reimplement in subclass to allow dynamic querying of OpenGL symbols. | |
| bool | isSoftwareContext () 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. | |
| virtual void | endFrame () |
| Called when the RHI ends rendering a in the context. | |
| QOpenGLContext * | context () const |
Friends | |
| QDebug | operator<< (QDebug debug, const QCocoaGLContext *screen) |
Additional Inherited Members | |
| Static Public Member Functions inherited from QPlatformOpenGLContext | |
| static bool | parseOpenGLVersion (const QByteArray &versionString, int &major, int &minor) |
Definition at line 23 of file qcocoaglcontext.h.
| QCocoaGLContext::QCocoaGLContext | ( | QOpenGLContext * | context | ) |
Definition at line 32 of file qcocoaglcontext.mm.
References QCocoaGLContext().
Referenced by QCocoaGLContext(), and QCocoaGLContext().
| QCocoaGLContext::QCocoaGLContext | ( | NSOpenGLContext * | context | ) |
Definition at line 38 of file qcocoaglcontext.mm.
References QCocoaGLContext().
| QCocoaGLContext::~QCocoaGLContext | ( | ) |
Definition at line 323 of file qcocoaglcontext.mm.
|
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 350 of file qcocoaglcontext.mm.
References update().
|
overridevirtual |
Implements QPlatformOpenGLContext.
Definition at line 524 of file qcocoaglcontext.mm.
|
overridevirtual |
Implements QPlatformOpenGLContext.
Definition at line 538 of file qcocoaglcontext.mm.
|
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 563 of file qcocoaglcontext.mm.
|
overridevirtual |
Called after a new instance is constructed.
The default implementation does nothing.
Subclasses can use this function to perform additional initialization that relies on virtual functions.
Reimplemented from QPlatformOpenGLContext.
Definition at line 44 of file qcocoaglcontext.mm.
|
overridevirtual |
Reimplemented from QPlatformOpenGLContext.
Definition at line 548 of file qcocoaglcontext.mm.
| bool QCocoaGLContext::isSoftwareContext | ( | ) | const |
Definition at line 553 of file qcocoaglcontext.mm.
|
overridevirtual |
Reimplemented from QPlatformOpenGLContext.
Definition at line 543 of file qcocoaglcontext.mm.
|
overridevirtual |
Implements QPlatformOpenGLContext.
Definition at line 328 of file qcocoaglcontext.mm.
References update().
|
override |
Definition at line 558 of file qcocoaglcontext.mm.
|
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 491 of file qcocoaglcontext.mm.
| void QCocoaGLContext::update | ( | ) |
Definition at line 456 of file qcocoaglcontext.mm.
Referenced by beginFrame(), and makeCurrent().
|
friend |
Definition at line 569 of file qcocoaglcontext.mm.