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呼び出しなど、外部で変更されたものはリセットされません。
この関数は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.