QQuickOpenGLUtils Namespace
QQuickOpenGLUtils 네임스페이스에는 OpenGL 백엔드와 함께 사용할 때 Qt Quick 용 유틸리티가 포함되어 있습니다. 더 보기...
헤더: | #include <QQuickOpenGLUtils> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
qmake: | QT += quick |
이후: | Qt 6.0 |
함수
(since 6.0) void | resetOpenGLState() |
함수 문서
[since 6.0]
void QQuickOpenGLUtils::resetOpenGLState()
이 함수를 호출하면 현재 OpenGL 컨텍스트를 기본 상태로 재설정합니다.
씬 그래프는 OpenGL 컨텍스트를 사용하며 이 컨텍스트에 의존하기도 하고 방해하기도 합니다. 원시 OpenGL 명령과 씬 그래프 렌더링을 혼합할 때 이 함수는 OpenGL 컨텍스트 상태를 기본값으로 재설정하는 편리한 방법을 제공합니다.
이 함수는 고정 함수 파이프라인의 상태를 건드리지 않습니다.
경고: 이 함수는 OpenGL 씬 그래프의 일부로 내부적으로 변경될 수 있는 것과 관련된 OpenGL 컨텍스트만 재설정합니다. 동일한 호출이 내부적으로 사용되지 않는 경우(예: 다양한 OpenGL 3.x 또는 4.x 특정 상태) 애플리케이션 코드 내부에서 수행된 직접 OpenGL 호출과 같이 외부에서 변경된 내용은 리셋하지 않습니다.
이 기능은 Qt 6.0에 도입되었습니다.
© 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.