/// <summary> /// Constructor used to build Lods. This is used when you want to compile all mesh data together, ready for exporting. /// </summary> public Model(FrameObjectModel frameModel, IndexBuffer[] indexBuffers, VertexBuffer[] vertexBuffers, FrameGeometry frameGeometry, FrameMaterial frameMaterial) { this.frameModel = frameModel; this.indexBuffers = indexBuffers; this.vertexBuffers = vertexBuffers; this.frameGeometry = frameGeometry; this.frameMaterial = frameMaterial; model = new M2TStructure(); model.IsSkinned = true; model.Name = frameMesh.Name.String; model.BuildLods(frameGeometry, frameMaterial, vertexBuffers, indexBuffers); }
/// <summary> /// Construct an empty model. /// </summary> public Model() { ModelStructure = new M2TStructure(); }