From 8b405d5dc93bb764d32627f78e476f7614918390 Mon Sep 17 00:00:00 2001 From: Christian Costa Date: Thu, 17 May 2012 10:09:31 +0200 Subject: [PATCH] d3drm: Load transform matrix and aply it to the current frame. --- dlls/d3drm/d3drm.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/dlls/d3drm/d3drm.c b/dlls/d3drm/d3drm.c index ba666dcefd..a96ff52fde 100644 --- a/dlls/d3drm/d3drm.c +++ b/dlls/d3drm/d3drm.c @@ -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)); -- 2.32.0.93.g670b81a890