QNativeInterface::QCocoaGLContext Struct
Native interface to an NSOpenGLContext on macOS. More...
| Header: | #include <QOpenGLContext> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui)target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Since: | Qt 6.0 |
Public Functions
| QCocoaGLContext() | |
| QCocoaGLContext(const QNativeInterface::QCocoaGLContext &) | |
| QCocoaGLContext(QNativeInterface::QCocoaGLContext &&) | |
| virtual NSOpenGLContext * | nativeContext() const = 0 |
| QNativeInterface::QCocoaGLContext & | operator=(QNativeInterface::QCocoaGLContext &&) |
| QNativeInterface::QCocoaGLContext & | operator=(const QNativeInterface::QCocoaGLContext &) |
Static Public Members
| QOpenGLContext * | fromNative(NSOpenGLContext *context, QOpenGLContext *shareContext = nullptr) |
Detailed Description
Accessed through QOpenGLContext::nativeInterface().
Member Function Documentation
[constexpr noexcept default] QCocoaGLContext::QCocoaGLContext()
Default-constructs an instance of QCocoaGLContext.
[delete] QCocoaGLContext::QCocoaGLContext(const QNativeInterface::QCocoaGLContext &)
Copy-constructs an instance of QCocoaGLContext. This function is deleted.
[delete] QCocoaGLContext::QCocoaGLContext(QNativeInterface::QCocoaGLContext &&)
Move-constructs an instance of QCocoaGLContext. This function is deleted.
[static] QOpenGLContext *QCocoaGLContext::fromNative(NSOpenGLContext *context, QOpenGLContext *shareContext = nullptr)
Adopts an NSOpenGLContext.
The adopted NSOpenGLContext context is retained. Ownership of the created QOpenGLContext shareContext is transferred to the caller.
[pure virtual] NSOpenGLContext *QCocoaGLContext::nativeContext() const
Returns the underlying NSOpenGLContext.
[delete] QNativeInterface::QCocoaGLContext &QCocoaGLContext::operator=(QNativeInterface::QCocoaGLContext &&)
Move-assigns other to this QCocoaGLContext instance. This function is deleted.
[delete] QNativeInterface::QCocoaGLContext &QCocoaGLContext::operator=(const QNativeInterface::QCocoaGLContext &)
Copy-assigns other to this QCocoaGLContext instance. This function is deleted.