QCocoaNativeContext Class

A class encapsulating a Cocoa NSOpenGLContext. 更多...

头文件: #include <QCocoaNativeContext>
开始支持版本: Qt 5.4

公有函数

QCocoaNativeContext()
QCocoaNativeContext(NSOpenGLContext *ctx)
NSOpenGLContext *context() const

详细描述

A class encapsulating a Cocoa NSOpenGLContext.

Note: There is no binary compatibility guarantee for this class, meaning that an application using it is only guaranteed to work with the Qt version it was developed against.

参见 QOpenGLContext::setNativeHandle() and QOpenGLContext::nativeHandle().

成员函数

QCocoaNativeContext::QCocoaNativeContext()

Construct a new instance with no handles.

QCocoaNativeContext::QCocoaNativeContext(NSOpenGLContext *ctx)

Constructs a new instance with the provided ctx handle.

NSOpenGLContext *QCocoaNativeContext::context() const

Returns the context.