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.