Skip to content
Snippets Groups Projects
MaterialsAPI.js 644 B
Newer Older
Amanda Ghassaei's avatar
Amanda Ghassaei committed
/**
 * Created by aghassaei on 9/25/15.
 */


Amanda Ghassaei's avatar
Amanda Ghassaei committed
define(['materials'], function(materials){
Amanda Ghassaei's avatar
Amanda Ghassaei committed


    return {

Amanda Ghassaei's avatar
Amanda Ghassaei committed
        init: function(json){//create a new material
            return materials.newMaterial(json);//return DMAMaterial object
        },

        destroy: function(material){
            materials.deleteMaterial(material.getID());
        },
Amanda Ghassaei's avatar
Amanda Ghassaei committed

Amanda Ghassaei's avatar
Amanda Ghassaei committed
        getMaterialForId: function(id){
            return materials.getMaterialForId(id);
Amanda Ghassaei's avatar
Amanda Ghassaei committed
        },

Amanda Ghassaei's avatar
Amanda Ghassaei committed
        getMaterials: function(){
Amanda Ghassaei's avatar
Amanda Ghassaei committed
        getCompositeMaterials: function(){
Amanda Ghassaei's avatar
Amanda Ghassaei committed
        bulkChangeMaterial: function(startMaterial, endMaterial){
Amanda Ghassaei's avatar
Amanda Ghassaei committed

        }
Amanda Ghassaei's avatar
Amanda Ghassaei committed

Amanda Ghassaei's avatar
Amanda Ghassaei committed
    }

});