 |
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.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
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