![]() |
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 30 of file qcocoaglcontext.mm.
References QCocoaGLContext().
Referenced by QCocoaGLContext(), and QCocoaGLContext().
| QCocoaGLContext::QCocoaGLContext | ( | NSOpenGLContext * | context | ) |
Definition at line 36 of file qcocoaglcontext.mm.
References QCocoaGLContext().
| QCocoaGLContext::~QCocoaGLContext | ( | ) |
Definition at line 329 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 356 of file qcocoaglcontext.mm.
References update().
|
overridevirtual |
Implements QPlatformOpenGLContext.
Definition at line 536 of file qcocoaglcontext.mm.
|
overridevirtual |
Implements QPlatformOpenGLContext.
Definition at line 550 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 575 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 42 of file qcocoaglcontext.mm.
|
overridevirtual |
Reimplemented from QPlatformOpenGLContext.
Definition at line 560 of file qcocoaglcontext.mm.
| bool QCocoaGLContext::isSoftwareContext | ( | ) | const |
Definition at line 565 of file qcocoaglcontext.mm.
Referenced by update().
|
overridevirtual |
Reimplemented from QPlatformOpenGLContext.
Definition at line 555 of file qcocoaglcontext.mm.
|
overridevirtual |
Implements QPlatformOpenGLContext.
Definition at line 334 of file qcocoaglcontext.mm.
References update().
|
override |
Definition at line 570 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 503 of file qcocoaglcontext.mm.
| void QCocoaGLContext::update | ( | ) |
Definition at line 462 of file qcocoaglcontext.mm.
References isSoftwareContext().
Referenced by beginFrame(), and makeCurrent().
|
friend |
Definition at line 581 of file qcocoaglcontext.mm.