 |
ObjExporterExportResourceFunction Delegate |
Delegate used for exporting .mtl file (material file) and texture images.
When .mtl file (material file) and texture images needs to be exported, the registered export function is called with suggested filename
and data to be written. The function implementation can either use the suggested filename as-is, or change it
(for example, add a custom prefix to the name generated by the exporter), and should return the filename that
was actually used. To make model file portable, the returned filename should be made relative to the exported
directory (e.g., model file's parent directory).
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic delegate string ExportResourceFunction(
string suggestedFilename,
byte[] data
)
Parameters
- suggestedFilename String
- suggested filename for the external image
- data Byte
- data to be written into external resource
Return Value
Stringactual filename used to store the external resource
See Also