Структура QCocoaGLContext
struct QNativeInterface::QCocoaGLContextНативный интерфейс для NSOpenGLContext в macOS. Подробнее...
| Заголовок: | #include <QOpenGLContext> |
| CMake: | find_package(Qt6 COMPONENTS Gui REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| С момента: | Qt 6.0 |
Открытые функции
| virtual NSOpenGLContext * | nativeContext() const = 0 |
Статические открытые члены
| QOpenGLContext * | fromNative(NSOpenGLContext *context, QOpenGLContext *shareContext = nullptr) |
Подробное описание
Доступ через QOpenGLContext::nativeInterface().
Документация по функциям-членам
[static] QOpenGLContext *QCocoaGLContext::fromNative(NSOpenGLContext *context, QOpenGLContext *shareContext = nullptr)
Принимает NSOpenGLContext.
Принятый NSOpenGLContext context сохраняется. Владение созданным QOpenGLContext shareContext передаётся вызывающей стороне.
[pure virtual] NSOpenGLContext *QCocoaGLContext::nativeContext() const
Возвращает основной NSOpenGLContext.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.0/qnativeinterface-qcocoaglcontext.html