Click or drag to resize
Ab4d.SharpEngine logo

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.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public 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

String
actual filename used to store the external resource
Remarks

[Missing <remarks> documentation for "T:Ab4d.SharpEngine.Utilities.ObjExporter.ExportResourceFunction"]

See Also