MaterialImportDescription defines the identifier / signature of an importer within the registry. It defines the factory for instantiation and a user-readable name.
For example, a registration may look the following:
{
importDescription.
_name =
"My Material"_s;
importDescription.
_class = MyImport::GetClass();
g_myMaterialImport = maxon::material::MaterialImporters::Register(MyImport::GetDescriptor().GetId(), std::move(importDescription))
iferr_return;
}
Definition: genericdata.h:20
return OK
Definition: apibase.h:2690
#define iferr_scope
Definition: resultbase.h:1384
#define iferr_return
Definition: resultbase.h:1519
Definition: materialimport.h:99
String _name
Definition: materialimport.h:100
Class< MaterialImportRef > _class
Definition: materialimport.h:101