Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
\inmodule QtQuick3D More...
#include <qssgrenderhelpers.h>
Public Types | |
using | MaterialList = QList<QSSGResourceId> |
Static Public Member Functions | |
static void | setModelMaterials (const QSSGFrameData &frameData, QSSGRenderablesId renderablesId, QSSGNodeId model, MaterialList materials) |
Sets the materials to be used on model. | |
static void | setModelMaterials (const QSSGFrameData &frameData, QSSGRenderablesId renderablesId, MaterialList materials) |
Convenience function to apply materials to all models in the renderablesId set. | |
static QMatrix4x4 | getGlobalTransform (const QSSGFrameData &frameData, QSSGNodeId model, QSSGPrepContextId prepId={}) |
static QMatrix4x4 | getLocalTransform (const QSSGFrameData &frameData, QSSGNodeId model) |
static float | getGlobalOpacity (const QSSGFrameData &frameData, QSSGNodeId model) |
static float | getGlobalOpacity (const QSSGFrameData &frameData, QSSGNodeId model, QSSGPrepContextId prepId) |
static float | getLocalOpacity (const QSSGFrameData &frameData, QSSGNodeId model) |
static void | setGlobalTransform (const QSSGFrameData &frameData, QSSGRenderablesId prepId, QSSGNodeId model, const QMatrix4x4 &transform) |
Sets the global transform for model in the context of the renderablesId. | |
static void | setGlobalOpacity (const QSSGFrameData &frameData, QSSGRenderablesId renderablesId, QSSGNodeId model, float opacity) |
Sets the global opacity for model in the context of the renderablesId. | |
\inmodule QtQuick3D
Class containing helper functions for modifying and setting data for model renderables.
Definition at line 52 of file qssgrenderhelpers.h.
Definition at line 55 of file qssgrenderhelpers.h.
|
static |
frameData
Definition at line 281 of file qssgrenderhelpers.cpp.
References model, Q_UNUSED, and QSSG_ASSERT_X.
|
static |
frameData
Definition at line 297 of file qssgrenderhelpers.cpp.
References QSSGFrameData::contextInterface(), QSSGLayerRenderData::getCurrent(), Invalid, model, and QSSG_ASSERT_X.
|
static |
frameData
Definition at line 250 of file qssgrenderhelpers.cpp.
References QSSGFrameData::contextInterface(), QSSGLayerRenderData::getCurrent(), Invalid, model, and QSSG_ASSERT_X.
|
static |
frameData
Definition at line 313 of file qssgrenderhelpers.cpp.
References model, Q_UNUSED, and QSSG_ASSERT_X.
|
static |
frameData
Definition at line 268 of file qssgrenderhelpers.cpp.
References model, Q_UNUSED, and QSSG_ASSERT_X.
|
static |
Sets the global opacity for model in the context of the renderablesId.
frameData, opacity
Definition at line 349 of file qssgrenderhelpers.cpp.
References QSSGFrameData::contextInterface(), QSSGLayerRenderData::getCurrent(), QSSGRenderGraphObjectUtils::getNode(), model, and QSSG_ASSERT_X.
|
static |
Sets the global transform for model in the context of the renderablesId.
frameData, transform
Definition at line 328 of file qssgrenderhelpers.cpp.
References QSSGFrameData::contextInterface(), QSSGLayerRenderData::getCurrent(), QSSGRenderGraphObjectUtils::getNode(), model, and QSSG_ASSERT_X.
|
static |
Convenience function to apply materials to all models in the renderablesId set.
frameData, renderablesId
Definition at line 232 of file qssgrenderhelpers.cpp.
References QSSGFrameData::contextInterface(), QSSGLayerRenderData::getCurrent(), and QSSG_ASSERT_X.
|
static |
Sets the materials to be used on model.
The sub-mesh uses a material from the \l{materials} list, corresponding to its index. If the number of materials is less than the sub-meshes, the last material in the list is used for subsequent sub-meshes.
frameData renderablesId
Definition at line 212 of file qssgrenderhelpers.cpp.
References QSSGFrameData::contextInterface(), QSSGLayerRenderData::getCurrent(), model, and QSSG_ASSERT_X.