QSSGModelHelpers Class
モデルのレンダラブルのデータを変更・設定するためのヘルパー関数を含むクラスです。詳細...
Header: | #include <QSSGModelHelpers> |
Since: | Qt 6.7 |
静的パブリックメンバー
float | getGlobalOpacity(const QSSGFrameData &frameData, QSSGNodeId model) |
float | getGlobalOpacity(const QSSGFrameData &frameData, QSSGNodeId model, QSSGPrepContextId prepId) |
QMatrix4x4 | getGlobalTransform(const QSSGFrameData &frameData, QSSGNodeId model, QSSGPrepContextId prepId = {}) |
float | getLocalOpacity(const QSSGFrameData &frameData, QSSGNodeId model) |
QMatrix4x4 | getLocalTransform(const QSSGFrameData &frameData, QSSGNodeId model) |
void | setGlobalOpacity(const QSSGFrameData &frameData, QSSGRenderablesId renderablesId, QSSGNodeId model, float opacity) |
void | setGlobalTransform(const QSSGFrameData &frameData, QSSGRenderablesId renderablesId, QSSGNodeId model, const QMatrix4x4 &transform) |
void | setModelMaterials(const QSSGFrameData &frameData, QSSGRenderablesId renderablesId, QSSGModelHelpers::MaterialList materials) |
void | setModelMaterials(const QSSGFrameData &frameData, QSSGRenderablesId renderablesId, QSSGNodeId model, QSSGModelHelpers::MaterialList materials) |
メンバ関数の説明
[static]
float QSSGModelHelpers::getGlobalOpacity(const QSSGFrameData &frameData, QSSGNodeId model)
戻り値model のグローバルな不透明度を返します。
frameData
[static]
float QSSGModelHelpers::getGlobalOpacity(const QSSGFrameData &frameData, QSSGNodeId model, QSSGPrepContextId prepId)
戻り値prepId のコンテキスト内のmodel のグローバルな不透明度を返します。 デフォルトでは、prep コンテキスト引数は QSSGPrepContextId::Uninitialized で、モデルの元のグローバルな不透明度を返します。
frameData
QSSGRenderHelpers::createRenderables()も参照してください 。
[static]
QMatrix4x4 QSSGModelHelpers::getGlobalTransform(const QSSGFrameData &frameData, QSSGNodeId model, QSSGPrepContextId prepId = {})
戻り値prepId のコンテキスト内のmodel のグローバル変換を返します。 デフォルトでは、prep コンテキスト引数は QSSGPrepContextId::Uninitialized で、モデルの元のグローバル変換を返します。
frameData
QSSGRenderHelpers::createRenderables()も参照してください 。
[static]
float QSSGModelHelpers::getLocalOpacity(const QSSGFrameData &frameData, QSSGNodeId model)
戻り値model のローカルな不透明度を返します。
frameData
[static]
QMatrix4x4 QSSGModelHelpers::getLocalTransform(const QSSGFrameData &frameData, QSSGNodeId model)
戻り値model に対する局所変換を返します。
frameData
[static]
void QSSGModelHelpers::setGlobalOpacity(const QSSGFrameData &frameData, QSSGRenderablesId renderablesId, QSSGNodeId model, float opacity)
renderablesId のコンテキストでmodel のグローバルな不透明度を設定する。
frameData,opacity
QSSGRenderHelpers::createRenderables()も参照 。
[static]
void QSSGModelHelpers::setGlobalTransform(const QSSGFrameData &frameData, QSSGRenderablesId renderablesId, QSSGNodeId model, const QMatrix4x4 &transform)
renderablesId のコンテキストでmodel のグローバル変換を設定する。
frameData,transform
QSSGRenderHelpers::createRenderables()も参照 。
[static]
void QSSGModelHelpers::setModelMaterials(const QSSGFrameData &frameData, QSSGRenderablesId renderablesId, QSSGModelHelpers::MaterialList materials)
renderablesIdセット内のすべてのモデルにmaterials 。
frameData,renderablesId
QSSGRenderHelpers::createRenderables()も参照してください 。
[static]
void QSSGModelHelpers::setModelMaterials(const QSSGFrameData &frameData, QSSGRenderablesId renderablesId, QSSGNodeId model, QSSGModelHelpers::MaterialList materials)
model で使用するmaterials を設定します。
サブメッシュは、materials リストから、そのインデックスに対応するマテリアルを使用します。マテリアルの数がサブメッシュより少ない場合、リストの最後のマテリアルがそれ以降のサブメッシュに使用されます。
frameData renderablesId
QSSGRenderHelpers::createRenderables()も参照してください 。
© 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.