QCocoaGLContext 结构体
struct QNativeInterface::QCocoaGLContextmacOS 上对 NSOpenGLContext 的本地接口。 更多信息...
| 头文件 | #include <QOpenGLContext> | 
| CMake | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) | 
| qmake | QT += gui | 
| 自 | Qt 6.0 | 
- 所有成员列表,包括继承的成员
- QCocoaGLContext 是 本地接口 的一部分。
公共函数
| virtual NSOpenGLContext * | nativeContext() const = 0 | 
静态公共成员
| QOpenGLContext * | fromNative(NSOpenGLContext *context, QOpenGLContext *shareContext = nullptr) | 
成员函数文档
[static] QOpenGLContext *QCocoaGLContext::fromNative(NSOpenGLContext *context, QOpenGLContext *shareContext = nullptr)
采用 NSOpenGLContext。
采用的 NSOpenGLContext context 被保留。创建的 QOpenGLContext shareContext 的所有权转移到调用者。
[纯虚函数] NSOpenGLContext *QCocoaGLContext::nativeContext() const
返回底层 NSOpenGLContext。
© 2024 The Qt Company Ltd. 本文档中包含的贡献的版权属于各自的拥有者。本文档的使用受 GNU 自由文档许可协议版本 1.3 的条款约束,由自由软件基金会发布。Qt 及其相应标志是 The Qt Company Ltd. 在芬兰和/或其他国家的注册商标。所有其他商标是各自拥有者的财产。