I am trying to wrap cegui for the Acknex Engine( http://www.3dgamestudio.com).
I am experienced with the plugin sdk of the engine.
foloowing this : http://www.cegui.org.uk/api_reference/r ... orial.html
i tired to get the cegui to render.
here is my function:
Code: Select all
DLLFUNC int cegui_init(){
CEGUI::Direct3D9Renderer& ceguid3d9renderer = CEGUI::Direct3D9Renderer::create((LPDIRECT3DDEVICE9)ev->pd3ddev);
try{
CEGUI::System::create( ceguid3d9renderer );
}
catch(CEGUI::GenericException except){
return 0;
}
return 1;
}
this function get's called from the engine, ev->pd3ddev is the LPDIRECT3DDEVICE9 that the engine is using. It is guaranteed by the engine is that this function is called somewhere between BeginScene and EndScene(thus the pd3ddev is valid.). CEGUI::Direct3D9Renderer::create seems to be working fine but CEGUI::System::create is not, since the debugger says the GenericException is thrown and the function returns 0.
CEGUI is dynamically linked, project compiles with 0 errors and 0 warnings, using vc++ express 2008.
What might be my problem? any help is appreciated.
Thanks.