-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
meshData = fileSaveObject.AddDataObject(XFileGuid.Mesh, singleMesh.Name, Guid.Empty, meshStream.GetBuffer());
XFileSaveData::AddDataObject(Guid dataTemplate, string name, Guid id, byte[] data);
XFileSaveData^ XFileSaveObject::AddDataObject_Internal( Guid dataTemplate, String^ name, Guid id, const void* data, SIZE_T size )
{
ID3DXFileSaveData *result;
GUID nativeId = Utilities::ConvertManagedGuid( id );
GUID *pointer = &nativeId;
if( id == Guid::Empty )
pointer = NULL;
array<unsigned char>^ nameBytes = System::Text::ASCIIEncoding::ASCII->GetBytes( name );
pin_ptr<unsigned char> pinnedName = &nameBytes[0];
HRESULT hr = InternalPointer->AddDataObject( Utilities::ConvertManagedGuid( dataTemplate ),
reinterpret_cast<LPCSTR>( pinnedName ), pointer, size, data, &result );
if( RECORD_D3D9(hr).IsFailure )
return nullptr;
return XFileSaveData::FromPointer( result );
}
hr = -2005531770,Then the next step is unusual.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels