Skip to content

Commit 039d63b

Browse files
committed
Added jsdocs
1 parent a42d1a3 commit 039d63b

5 files changed

Lines changed: 263 additions & 18 deletions

File tree

src/gameobjects/mesh/Mesh.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ var MeshRender = require('./MeshRender');
3030
* @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.
3131
* @param {number} x - The horizontal position of this Game Object in the world.
3232
* @param {number} y - The vertical position of this Game Object in the world.
33-
* @param {array} vertices - [description]
34-
* @param {array} uv - [description]
35-
* @param {array} colors - [description]
36-
* @param {array} alphas - [description]
33+
* @param {array} vertices - An array containing the vertices data for this Mesh.
34+
* @param {array} uv - An array containing the uv data for this Mesh.
35+
* @param {array} colors - An array containing the color data for this Mesh.
36+
* @param {array} alphas - An array containing the alpha data for this Mesh.
3737
* @param {string} texture - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager.
3838
* @param {string|integer} [frame] - An optional frame from the Texture this Game Object is rendering with.
3939
*/

src/gameobjects/mesh/MeshFactory.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ var GameObjectFactory = require('../GameObjectFactory');
1010
* @webglOnly
1111
* @since 3.0.0
1212
*
13+
* @param {number} x - The horizontal position of this Game Object in the world.
14+
* @param {number} y - The vertical position of this Game Object in the world.
15+
* @param {array} vertices - An array containing the vertices data for this Mesh.
16+
* @param {array} uv - An array containing the uv data for this Mesh.
17+
* @param {array} colors - An array containing the color data for this Mesh.
18+
* @param {array} alphas - An array containing the alpha data for this Mesh.
19+
* @param {string} texture - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager.
20+
* @param {string|integer} [frame] - An optional frame from the Texture this Game Object is rendering with.
1321
*
1422
* @return {Phaser.GameObjects.Mesh} The Game Object that was created.
1523
*/

0 commit comments

Comments
 (0)