[saco] Implement IDirect3DDevice9Hook::SetTransform(...)

This commit is contained in:
RD42 2024-04-22 22:52:52 +08:00
parent 2ee12dfee5
commit b75e98217d

View File

@ -13,6 +13,7 @@
#include "../main.h"
extern IDirect3DDevice9 *pD3DDevice;
D3DXMATRIX matView, matProj, matWorld;
//-------------------------------------------
@ -244,7 +245,18 @@ HRESULT __stdcall IDirect3DDevice9Hook::Clear(DWORD Count, CONST D3DRECT* pRects
HRESULT __stdcall IDirect3DDevice9Hook::SetTransform(D3DTRANSFORMSTATETYPE State, CONST D3DMATRIX* mat)
{
// TODO: IDirect3DDevice9Hook::SetTransform
switch (State)
{
case D3DTS_PROJECTION:
matProj = *mat;
break;
case D3DTS_VIEW:
matView = *mat;
break;
case D3DTS_WORLD:
matWorld = *mat;
break;
}
return pD3DDevice->SetTransform(State, mat);
}