mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[saco] Implement IDirect3DDevice9Hook::SetTransform(...)
This commit is contained in:
parent
2ee12dfee5
commit
b75e98217d
@ -13,6 +13,7 @@
|
|||||||
#include "../main.h"
|
#include "../main.h"
|
||||||
|
|
||||||
extern IDirect3DDevice9 *pD3DDevice;
|
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)
|
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);
|
return pD3DDevice->SetTransform(State, mat);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user