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;
}
return OK
Definition: apibase.h:2735
#define iferr_scope
Definition: resultbase.h:1389
#define iferr_return
Definition: resultbase.h:1524
Definition: materialimport.h:104
String _name
Definition: materialimport.h:105
Class< MaterialImportRef > _class
Definition: materialimport.h:106