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

Public Attributes

Int32 _type
 
Class< MaterialExportRef > _class
 

Member Data Documentation

◆ _type

Int32 _type

◆ _class

Class<MaterialExportRef> _class