60 Q_PROPERTY(QList<QVector3D> positions READ positions WRITE setPositions NOTIFY positionsChanged FINAL)
61 Q_PROPERTY(QList<QVector3D> normals READ normals WRITE setNormals NOTIFY normalsChanged FINAL)
62 Q_PROPERTY(QList<QVector3D> tangents READ tangents WRITE setTangents NOTIFY tangentsChanged FINAL)
63 Q_PROPERTY(QList<QVector3D> binormals READ binormals WRITE setBinormals NOTIFY binormalsChanged FINAL)
64 Q_PROPERTY(QList<QVector2D> uv0s READ uv0s WRITE setUv0s NOTIFY uv0sChanged FINAL)
65 Q_PROPERTY(QList<QVector2D> uv1s READ uv1s WRITE setUv1s NOTIFY uv1sChanged FINAL)
66 Q_PROPERTY(QList<QVector4D> colors READ colors WRITE setColors NOTIFY colorsChanged FINAL)
67 Q_PROPERTY(QList<QVector4D> joints READ joints WRITE setJoints NOTIFY jointsChanged FINAL)
68 Q_PROPERTY(QList<QVector4D> weights READ weights WRITE setWeights NOTIFY weightsChanged FINAL)
69 Q_PROPERTY(QList<
unsigned int> indexes READ indexes WRITE setIndexes NOTIFY indexesChanged FINAL)
70 Q_PROPERTY(QQmlListProperty<ProceduralMeshSubset> subsets READ subsets FINAL)
71 Q_PROPERTY(PrimitiveMode primitiveMode READ primitiveMode WRITE setPrimitiveMode NOTIFY primitiveModeChanged FINAL)
73 QML_ADDED_IN_VERSION(6, 6)
86 QList<QVector3D> positions()
const;
87 void setPositions(
const QList<QVector3D> &newPositions);
88 PrimitiveMode primitiveMode()
const;
89 void setPrimitiveMode(PrimitiveMode newPrimitiveMode);
91 QList<
unsigned int> indexes()
const;
92 void setIndexes(
const QList<
unsigned int> &newIndexes);
94 QList<QVector3D> normals()
const;
95 void setNormals(
const QList<QVector3D> &newNormals);
97 QList<QVector3D> tangents()
const;
98 void setTangents(
const QList<QVector3D> &newTangents);
100 QList<QVector3D> binormals()
const;
101 void setBinormals(
const QList<QVector3D> &newBinormals);
103 QList<QVector2D> uv0s()
const;
104 void setUv0s(
const QList<QVector2D> &newUv0s);
106 QList<QVector2D> uv1s()
const;
107 void setUv1s(
const QList<QVector2D> &newUv1s);
109 QList<QVector4D> colors()
const;
110 void setColors(
const QList<QVector4D> &newColors);
112 QList<QVector4D> joints()
const;
113 void setJoints(
const QList<QVector4D> &newJoints);
115 QList<QVector4D> weights()
const;
116 void setWeights(
const QList<QVector4D> &newWeights);
118 QQmlListProperty<ProceduralMeshSubset> subsets();
121 void positionsChanged();
122 void primitiveModeChanged();
123 void indexesChanged();
124 void normalsChanged();
125 void tangentsChanged();
126 void binormalsChanged();
129 void colorsChanged();
130 void jointsChanged();
131 void weightsChanged();
134 void requestUpdate();
135 void updateGeometry();
136 void subsetDestroyed(QObject *subset);
139 bool supportsTriangleFanPrimitive()
const;
141 static void qmlAppendProceduralMeshSubset(QQmlListProperty<ProceduralMeshSubset> *list, ProceduralMeshSubset *subset);
142 static ProceduralMeshSubset *qmlProceduralMeshSubsetAt(QQmlListProperty<ProceduralMeshSubset> *list, qsizetype index);
143 static qsizetype qmlProceduralMeshSubsetCount(QQmlListProperty<ProceduralMeshSubset> *list);
144 static void qmlClearProceduralMeshSubset(QQmlListProperty<ProceduralMeshSubset> *list);
146 bool m_updateRequested =
false;
147 PrimitiveMode m_primitiveMode = Triangles;
148 QList<QVector3D> m_positions;
149 QList<
unsigned int> m_indexes;
150 QList<QVector3D> m_normals;
151 QList<QVector3D> m_tangents;
152 QList<QVector3D> m_binormals;
153 QList<QVector2D> m_uv0s;
154 QList<QVector2D> m_uv1s;
155 QList<QVector4D> m_colors;
156 QList<QVector4D> m_joints;
157 QList<QVector4D> m_weights;
158 QList<ProceduralMeshSubset *> m_subsets;