MaterialExportDescription Struct Reference

#include <materialexport.h>

Detailed Description

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:

static maxon::GenericData g_myMaterialExport;
maxon::Result<void> MyExport::Register()
{
exportDescription._type = MY_MAT_ID;
exportDescription._class = MyExport::GetClass();
g_myMaterialExport = maxon::material::MaterialImporters::Register(MyExport::GetDescriptor().GetId(), std::move(exportDescription)) iferr_return;
return maxon::OK;
}
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: materialexport.h:155
Class< MaterialExportRef > _class
Definition: materialexport.h:157
Int32 _type
Definition: materialexport.h:156

Public Attributes

Int32 _type
 
Class< MaterialExportRef > _class
 

Member Data Documentation

◆ _type

Int32 _type

◆ _class

Class<MaterialExportRef> _class