/// <summary> /// Constructs a new ExportFormatDescription. /// </summary> /// <param name="formatDesc">Unmanaged structure</param> internal ExportFormatDescription(ref AiExportFormatDesc formatDesc) { m_formatId = Marshal.PtrToStringAnsi(formatDesc.FormatId); m_description = Marshal.PtrToStringAnsi(formatDesc.Description); m_fileExtension = Marshal.PtrToStringAnsi(formatDesc.FileExtension); //Stupid hack, for some reason the formatID for COLLADA format is always messed up if (m_fileExtension == "dae") { m_formatId = "collada"; } }
/// <summary> /// Constructs a new ExportFormatDescription. /// </summary> /// <param name="formatDesc">Unmanaged structure</param> internal ExportFormatDescription(ref AiExportFormatDesc formatDesc) { m_formatId = Marshal.PtrToStringAnsi(formatDesc.FormatId); m_description = Marshal.PtrToStringAnsi(formatDesc.Description); m_fileExtension = Marshal.PtrToStringAnsi(formatDesc.FileExtension); }