Greetings, I'm a complete noob when it comes to C++ and DirectX programming. I'm trying to do the good old D3DX hooking. Can anyone please help me figure out why my code isn't displaying the text I wanted. Thank you!
PS If you could link to resourceful sites, I would appreciate it! It's pretty hard to come by.
void myIDirect3DDevice8::DisplayTitle(void)
{
CD3DFont *D3DFont;
D3DFont->DrawTextA(0, 0, D3DCOLOR_ARGB(255, 255, 255, 255), "Hello World", 1);
}
HRESULT __stdcall myIDirect3DDevice8::Present(CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)
{
this->DisplayTitle();
// Call original routine
HRESULT hres = m_pIDirect3DDevice8->Present( pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
return (hres);
}