QCocoaNativeContext Struct
A class encapsulating a Cocoa NSOpenGLContext. More...
Header: | #include <QCocoaNativeContext> |
Since: | Qt 5.4 |
This struct was introduced in Qt 5.4.
Public Functions
QCocoaNativeContext(NSOpenGLContext *ctx) | |
QCocoaNativeContext() | |
NSOpenGLContext * | context() const |
Detailed Description
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(NSOpenGLContext *ctx)
Constructs a new instance with the provided ctx handle.
QCocoaNativeContext::QCocoaNativeContext()
Construct a new instance with no handles.
NSOpenGLContext *QCocoaNativeContext::context() const
Returns the context.
© 2020 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.