MaterialImportDescription Struct Reference

#include <materialimport.h>

Detailed Description

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:

static maxon::GenericData g_myMaterialImport;
maxon::Result<void> MyImport::Register()
{
importDescription._name = "My Material"_s;
importDescription._class = MyImport::GetClass();
g_myMaterialImport = maxon::material::MaterialImporters::Register(MyImport::GetDescriptor().GetId(), std::move(importDescription)) iferr_return;
return maxon::OK;
}
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

Public Attributes

String _name
 
Class< MaterialImportRef > _class
 

Member Data Documentation

◆ _name

String _name

◆ _class

Class<MaterialImportRef> _class