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를 채택합니다.

채택된 NSOpenGLContext context 가 유지됩니다. 생성된 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.