QGLXContext Struct
struct QNativeInterface::QGLXContextGLX 컨텍스트에 대한 기본 인터페이스. 더 보기...
Header: | #include <QOpenGLContext> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
이후: | Qt 6.0 |
- 상속된 멤버를 포함한 모든 멤버 목록
- QGLXContext는 네이티브 인터페이스의 일부입니다.
공용 함수
int | nativeContext() const |
정적 공용 멤버
QOpenGLContext * | fromNative(int configBasedContext, QOpenGLContext *shareContext = nullptr) |
QOpenGLContext * | fromNative(int visualBasedContext, void *visualInfo, QOpenGLContext *shareContext = nullptr) |
상세 설명
QOpenGLContext::nativeInterface()를 통해 액세스합니다.
멤버 함수 문서
[static]
QOpenGLContext *QGLXContext::fromNative(int configBasedContext, QOpenGLContext *shareContext = nullptr)
FBConfig에서 생성된 GLXContext configBasedContext 를 채택합니다.
컨텍스트는 glXCreateNewContext
함수를 사용하여 프레임버퍼 구성에서 만들어야 합니다.
생성된 QOpenGLContext shareContext 의 소유권은 호출자에게 이전됩니다.
[static]
QOpenGLContext *QGLXContext::fromNative(int visualBasedContext, void *visualInfo, QOpenGLContext *shareContext = nullptr)
X 비주얼에서 생성된 GLXContext를 채택합니다.
컨텍스트는 glXCreateContext
함수를 사용하여 비주얼에서 만들어야 합니다. visualInfo 인수에 동일한 비주얼을 XVisualInfo
구조체에 대한 포인터로 전달해야 합니다.
생성된 QOpenGLContext 의 소유권은 호출자에게 이전됩니다.
int QGLXContext::nativeContext() const
기본 GLXContext를 반환합니다.
© 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.