MaterialExportDescription defines the identifier / signature of an exporter within the registry. It defines the factory for instantiation and a compatible material type.
For example, a registration may look the following:
{
exportDescription.
_type = MY_MAT_ID;
exportDescription.
_class = MyExport::GetClass();
g_myMaterialExport = maxon::material::MaterialImporters::Register(MyExport::GetDescriptor().GetId(), std::move(exportDescription))
iferr_return;
}
Definition: genericdata.h:20
return OK
Definition: apibase.h:2667
#define iferr_scope
Definition: resultbase.h:1374
#define iferr_return
Definition: resultbase.h:1465
Definition: materialexport.h:155
Class< MaterialExportRef > _class
Definition: materialexport.h:157
Int32 _type
Definition: materialexport.h:156