QCocoaNativeContext Class

A class encapsulating a Cocoa NSOpenGLContext. More...

Header: #include <QCocoaNativeContext>
Since: Qt 5.4

Public Functions

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

Detailed Description

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.

See also QOpenGLContext::setNativeHandle() and QOpenGLContext::nativeHandle().

Member Function Documentation

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.

© 2017 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.