QCocoaGLContext Struct

struct QNativeInterface::QCocoaGLContext

macOS上のNSOpenGLContextへのネイティブインターフェース。さらに...

ヘッダー #include <QOpenGLContext>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
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 を採用する。

採用された NSOpenGLContextcontext は保持される。作成されたQOpenGLContext shareContext の所有権は呼び出し元に移る。

[pure virtual] NSOpenGLContext *QCocoaGLContext::nativeContext() const

基礎となる NSOpenGLContext を返します。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.