1 /**
  2  * @class model
  3  * @description
  4  * 
  5  * A 3D object as a collection of meshes and materials.
  6  * 
  7  */ 
  8 function model() {
  9 
 10     /**
 11      * Gets the mesh at the index given.
 12      * @param {Number} index
 13      * @returns {mesh}
 14      */
 15     this.getSectionMesh = function(){};
 16 
 17     /**
 18      * Gets the material at the index given.
 19      * @returns {material}
 20      */
 21     this.getSectionMaterial = function(){};
 22 
 23     /**
 24      * Sets the mesh at the given index
 25      * @param {Number} index 
 26      * @param {mesh} mesh Mesh to set at that index.
 27      */
 28     this.setSectionMesh = function(){};
 29 
 30     /**
 31      * Sets the material at the givne index
 32      * @param {Number} index 
 33      * @param {material} material Material to set at that index.
 34      */
 35     this.setSectionMaterial = function(){};
 36 
 37 
 38 
 39 
 40 
 41     /**
 42      * Removes all section objects.
 43      */
 44     this.clear = function(){};
 45 
 46     /**
 47      * Adds a new section index.
 48      */
 49     this.addSection = function(){};
 50 
 51     /**
 52      * Creates an entity that when 'draw' is called renders all 
 53      * meshes and materials given to the model.
 54      * @returns {entity}
 55      */
 56     this.create = function(){};
 57 
 58 
 59 
 60 
 61 
 62 
 63 
 64 
 65     /**
 66      * Number of sections that belong to the model.
 67      * @type {Number}
 68      */
 69     this.sectionCount = 0;
 70 
 71 
 72 
 73 
 74     return this;
 75 }
 76