DirectX9 equivalent of _PB_Direct3D_Device?
Posted: Wed Jan 21, 2009 9:21 pm
With the default DirectX7 subsystem we can find the IDirect3DDevice7 interface like this:
What do I need instead of _PB_Direct3D_Device to find the IDirect3DDevice9 interface when using the DirectX9 subsystem?
Code: Select all
D3Ddevice_interface.IDirect3DDevice7
Start3D()
!extrn _PB_Direct3D_Device
!MOV dword EAX, [_PB_Direct3D_Device]
!MOV dword [v_D3Ddevice_interface],EAX
Stop3D()