Commit 8b405d5d authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

d3drm: Load transform matrix and aply it to the current frame.

parent 0d3807db
......@@ -1423,6 +1423,27 @@ HRESULT load_data(IDirect3DRM3* iface, LPDIRECTXFILEDATA data_object, LPIID* GUI
FIXME("Processing material not supported yet\n");
}
}
else if (IsEqualGUID(guid, &TID_D3DRMFrameTransformMatrix))
{
TRACE("Found TID_D3DRMFrameTransformMatrix\n");
if (parent_frame)
{
D3DRMMATRIX4D matrix;
DWORD size;
TRACE("Load Frame Transform Matrix data\n");
size = sizeof(matrix);
hr = IDirectXFileData_GetData(data_object, NULL, &size, (void**)matrix);
if ((hr != DXFILE_OK) || (size != sizeof(matrix)))
goto end;
hr = IDirect3DRMFrame3_AddTransform(parent_frame, D3DRMCOMBINE_REPLACE, matrix);
if (FAILED(hr))
goto end;
}
}
else
{
FIXME("Found unknown TID %s\n", debugstr_guid(guid));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment