![]() |
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 28 of file qcocoaglcontext.mm.
References QCocoaGLContext().
Referenced by QCocoaGLContext(), and QCocoaGLContext().
| QCocoaGLContext::QCocoaGLContext | ( | NSOpenGLContext * | context | ) |
Definition at line 34 of file qcocoaglcontext.mm.
References QCocoaGLContext().
| QCocoaGLContext::~QCocoaGLContext | ( | ) |
Definition at line 319 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 346 of file qcocoaglcontext.mm.
References update().
|
overridevirtual |
Implements QPlatformOpenGLContext.
Definition at line 497 of file qcocoaglcontext.mm.
|
overridevirtual |
Implements QPlatformOpenGLContext.
Definition at line 511 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 536 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 40 of file qcocoaglcontext.mm.
|
overridevirtual |
Reimplemented from QPlatformOpenGLContext.
Definition at line 521 of file qcocoaglcontext.mm.
| bool QCocoaGLContext::isSoftwareContext | ( | ) | const |
Definition at line 526 of file qcocoaglcontext.mm.
|
overridevirtual |
Reimplemented from QPlatformOpenGLContext.
Definition at line 516 of file qcocoaglcontext.mm.
|
overridevirtual |
Implements QPlatformOpenGLContext.
Definition at line 324 of file qcocoaglcontext.mm.
References update().
|
override |
Definition at line 531 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 464 of file qcocoaglcontext.mm.
| void QCocoaGLContext::update | ( | ) |
Definition at line 452 of file qcocoaglcontext.mm.
Referenced by beginFrame(), and makeCurrent().
|
friend |
Definition at line 542 of file qcocoaglcontext.mm.