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 호출과 같이, 내부적으로 사용되지 않는 외부에서 변경된 항목(예: 다양한 OpenGL 3.x 또는 4.x 특정 상태)은 재설정되지 않습니다.
이 함수는 Qt 6.0에서 도입되었습니다.
© 2026 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.