[Help] D3D Hook
Any tutorial on EndScene hook D3D?
Target: Gunbound 2D
Compiler: C++
Countless tutorials are available online. Search.
The basic steps are:
1. Get the IDirect3DDevice9 address;
2. Get the Virtual Table pointer from the Device;
3. Make the 42nd index (EndScene's index) from the Virtual Table point to your hook function. Dont forget to save the old pointer.
4. Inside your Hooked EndScene call the original EndScene again so that the rendering is not broken.
Also, C++ is a programming language, not a "compiler".