QSGDynamicTexture Class
QSGDynamicTexture クラスは、FBO にレンダリングされるコンテンツなど、動的に変化するテクスチャのベースクラスとして機能します。詳細...
ヘッダー | #include <QSGDynamicTexture> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
qmake: | QT += quick |
継承: | QSGTexture |
パブリック関数
virtual bool | updateTexture() = 0 |
詳細説明
テクスチャの内容を更新するには、明示的にupdateTexture() を呼び出します。
注意: QSG 接頭辞を持つすべてのクラスは、シーングラフのレンダリングスレッドでのみ使用する必要があります。詳細については、シーングラフとレンダリングを参照してください。
メンバー関数ドキュメント
[pure virtual]
bool QSGDynamicTexture::updateTexture()
動的テクスチャを明示的に更新するには、この関数を呼び出します。
この関数は、更新の結果としてテクスチャが変更された場合はtrueを返し、そうでない場合はfalseを返します。
注意: この関数は通常、QQuickItem::updatePaintNode() またはQSGNode::preprocess() から呼び出されます。つまり、シーングラフのsynchronization
またはnode preprocessing
フェーズの間に呼び出されます。それ以外のタイミングでこの関数を呼び出すと、予期しない動作につながる可能性があります。
© 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.