mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-10 19:53:00 +02:00
Deprecate Entities.getMeshes() in favor of using the new Graphics API
This commit is contained in:
parent
d82a300f5f
commit
f9086e31de
4 changed files with 8 additions and 2 deletions
|
@ -1305,6 +1305,7 @@ public slots:
|
|||
* @function Entities.getMeshes
|
||||
* @param {Uuid} entityID - The ID of the <code>Model</code> or <code>PolyVox</code> entity to get the meshes of.
|
||||
* @param {Entities~getMeshesCallback} callback - The function to call upon completion.
|
||||
* @deprecated Use the {@link Graphics} API instead.
|
||||
*/
|
||||
/**jsdoc
|
||||
* Called when {@link Entities.getMeshes} is complete.
|
||||
|
@ -1313,7 +1314,8 @@ public slots:
|
|||
* <code>Model</code> or <code>PolyVox</code> entity; otherwise <code>undefined</code>.
|
||||
* @param {boolean} success - <code>true</code> if the {@link Entities.getMeshes} call was successful, <code>false</code>
|
||||
* otherwise. The call may be unsuccessful if the requested entity could not be found.
|
||||
*/
|
||||
* @deprecated Use the {@link Graphics} API instead.
|
||||
*/
|
||||
// FIXME move to a renderable entity interface
|
||||
Q_INVOKABLE void getMeshes(QUuid entityID, QScriptValue callback);
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ public slots:
|
|||
* Returns a model reference object associated with the specified UUID ({@link EntityID}, {@link OverlayID}, or {@link AvatarID}).
|
||||
*
|
||||
* @function Graphics.getModel
|
||||
* @param {UUID} The objectID of the model whose meshes are to be retrieved.
|
||||
* @param {UUID} entityID - The objectID of the model whose meshes are to be retrieved.
|
||||
* @return {Graphics.Model} the resulting Model object
|
||||
*/
|
||||
scriptable::ScriptableModelPointer getModel(QUuid uuid);
|
||||
|
|
|
@ -345,6 +345,7 @@ using MeshPointer = std::shared_ptr<graphics::Mesh>;
|
|||
/**jsdoc
|
||||
* A handle for a mesh in an entity, such as returned by {@link Entities.getMeshes}.
|
||||
* @class MeshProxy
|
||||
* @deprecated Use the {@link Graphics} API instead.
|
||||
*/
|
||||
class MeshProxy : public QObject {
|
||||
Q_OBJECT
|
||||
|
@ -356,6 +357,7 @@ public:
|
|||
* Get the number of vertices in the mesh.
|
||||
* @function MeshProxy#getNumVertices
|
||||
* @returns {number} Integer number of vertices in the mesh.
|
||||
* @deprecated Use the {@link Graphics} API instead.
|
||||
*/
|
||||
Q_INVOKABLE virtual int getNumVertices() const = 0;
|
||||
|
||||
|
@ -364,6 +366,7 @@ public:
|
|||
* @function MeshProxy#getPos3
|
||||
* @param {number} index - Integer index of the mesh vertex.
|
||||
* @returns {Vec3} Local position of the vertex relative to the mesh.
|
||||
* @deprecated Use the {@link Graphics} API instead.
|
||||
*/
|
||||
Q_INVOKABLE virtual glm::vec3 getPos3(int index) const = 0;
|
||||
};
|
||||
|
|
|
@ -24,6 +24,7 @@ exports.handlers = {
|
|||
'../../libraries/animation/src',
|
||||
'../../libraries/avatars/src',
|
||||
'../../libraries/controllers/src/controllers/',
|
||||
'../../libraries/graphics-scripting/src/graphics-scripting/',
|
||||
'../../libraries/entities/src',
|
||||
'../../libraries/model-networking/src/model-networking/',
|
||||
'../../libraries/octree/src',
|
||||
|
|
Loading…
Reference in a new issue