#include <materialexport.h>
◆ MAXON_INTERFACE()
◆ Export()
Helper function that perform a lookup of a matching entry in the MaterialExporters registry. After instantiation of the compatible exporter, the multi-stage process is interleaved with data handover to a compatible MaterialMapping instance if required. Note that mappings are not chained.
- Parameters
-
[in] | baseMaterial | The material to be exported. |
[in] | config | The export configuration. |
- Returns
- The exported material data on success.
◆ Initialize()
Initialized the export operation by providing the BaseMaterial and export configuration.
- Parameters
-
[in] | baseMaterial | The material to be exported. |
[in] | config | The export configuration. |
- Returns
- OK on success.
◆ GetParameters()
Returns the constant-values parameters along with markings of whether they require texture representation in order to request texture baking in the GetTextures() stage. Returned parameters are expected to be of type maxon::material::PackedConstantParameter().
- Returns
- The material parameters on success.
◆ GetTextures()
Creates textures for the provided parameters. The textures may be texture buffers, image references or substance references.
- Parameters
-
[in] | texturedChannels | The parameters for which textures are requested. |
- Returns
- The textures on success.