History

do Model::getMeshes on the correct thread. added ModelScriptingInterface::getVertexCount and ModelScriptingInterface::getVertex

Seth Alves committed 9 years ago

Commit 72e5fec1 parent 8a0b4395 files · +45 −5Browse files

Showing the changes to libraries/script-engine/src/ModelScriptingInterface.h (1 of 5 files). Show all

Unified · Split

libraries/script-engine/src/ModelScriptingInterface.h+2−0
@@ -29,6 +29,8 @@ public: · 28 unmodified lines
2929 Q_INVOKABLE QScriptValue newMesh(const QVector<glm::vec3>& vertices,
3030 const QVector<glm::vec3>& normals,
3131 const QVector<MeshFace>& faces);
32+ Q_INVOKABLE QScriptValue getVertexCount(MeshProxy* meshProxy);
33+ Q_INVOKABLE QScriptValue getVertex(MeshProxy* meshProxy, int vertexIndex);
3234
3335 private:
3436 QScriptEngine* _modelScriptEngine { nullptr };