Methods
-
<static> create(type)
-
Function to create a SKARF.ModelLoader instance
Parameters:
Name Type Description typestring Type of ModelLoader to create: 'empty', 'json', 'json_bin', 'obj' -
<static> register(mappingName, mappingClass)
-
Registers a type string to a class
Parameters:
Name Type Description mappingNamestring Name of the mapping which is used to identify the type when creating instances e.g. 'threejs' mappingClassSKARF.ModelLoader ModelLoader class that will be created when the associated type is used