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;
}
return OK
Definition: apibase.h:2735
#define iferr_scope
Definition: resultbase.h:1389
#define iferr_return
Definition: resultbase.h:1524
Definition: materialexport.h:172
Class< MaterialExportRef > _class
Definition: materialexport.h:174
Int32 _type
Definition: materialexport.h:173