CrazyEddie wrote:CEGUI does not save and restore the D3D states, so you should do that around the call the System::renderGUI.
CE.
Hmm, how should i do that please? I am really desparate.
I dont know exactly, what you thik. If it is testing this
Code: Select all
//check device
bool ret = true;
switch(m_pDirect3DDevice->TestCooperativeLevel())
{
case D3DERR_DEVICELOST:
ret = false;
break;
case D3DERR_DEVICENOTRESET:
{
m_font->OnLostDevice();
//reset device
if(FAILED(m_pDirect3DDevice->Reset(&m_PresentParameters)))
{
assert(false);
SMCLog::DebugPrint("[GUI]","Reset() failed!");
ret = false;
break;
}
//init scene again
InitScene();
m_font->OnResetDevice();
}
break;
}
return ret;
This code i allready have implemented
So what are the possibilities that can happen? why cant i see my objects when gui is shown? I really cant get it... . Is there any code i can provide, that you can help me?
When i have empty gui.layout file, so i am rendering only mouse cursor, my objects are also hidden. There have to be init errors or something.i cant uderstand this sitation
EDIT: i found out, when i comment all the gui code, except bootstrapsystem() and renderGUI() my objects are still invisible.. How is that possible?