Spec-Zone.ru › Qt 6.1

Структура 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
  • Список всех членов, включая унаследованные

Открытые функции

виртуальный 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.1/qnativeinterface-qcocoaglcontext.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API