Problem Implementing Into DirectX9 Hook
Posted: Sun Jun 25, 2006 08:35
Hey guys, i've been using something called a "ProxyDLL" DirectX9 hook to get access to a directx 9 game which i want to try add GUI to.
I've added all the includes etc, and it compiles but when i load the game the screen is totally blank but i still hear menu sounds.
The hook i'm using is located here:
http://www.mikoweb.eu/index.php?node=28
This is my includes:
This is my begin scene:
And this is my end scene:
I'm probably going about it the wrong way, but from what i understand.
Is creating a whole new DirectX render surface? But all i want to do is get the current one of the game i'm hooked into...
Any help you can give me is very much appreciated.
Thanks.
I've added all the includes etc, and it compiles but when i load the game the screen is totally blank but i still hear menu sounds.
The hook i'm using is located here:
http://www.mikoweb.eu/index.php?node=28
This is my includes:
Code: Select all
#include "CEGUI.h"
#include "d3d9renderer.h"
This is my begin scene:
Code: Select all
HRESULT myIDirect3DDevice9::BeginScene(void)
{
CEGUI::DirectX9Renderer* m_CEGUI = new CEGUI::DirectX9Renderer(m_pIDirect3DDevice9, 0);
new CEGUI::System(m_CEGUI);
System::getSingleton().setGUISheet(myRoot);
return(m_pIDirect3DDevice9->BeginScene());
}
And this is my end scene:
Code: Select all
HRESULT myIDirect3DDevice9::EndScene(void)
{
CEGUI::System::getSingleton().renderGUI();
return(m_pIDirect3DDevice9->EndScene());
}
I'm probably going about it the wrong way, but from what i understand.
CEGUI::DirectX9Renderer* m_CEGUI = new CEGUI::DirectX9Renderer(m_pIDirect3DDevice9, 0);
Is creating a whole new DirectX render surface? But all i want to do is get the current one of the game i'm hooked into...
Any help you can give me is very much appreciated.
Thanks.