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;
}
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: materialimport.h:99
String _name
Definition: materialimport.h:100
Class< MaterialImportRef > _class
Definition: materialimport.h:101

Public Attributes

String _name
 
Class< MaterialImportRef > _class
 

Member Data Documentation

◆ _name

String _name

◆ _class

Class<MaterialImportRef> _class