Methods
-
<static> create(type)
-
Function to create a SKARF.ModelLoader instance
Parameters:
Name Type Description type
string 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 mappingName
string Name of the mapping which is used to identify the type when creating instances e.g. 'threejs' mappingClass
SKARF.ModelLoader ModelLoader class that will be created when the associated type is used