Code: Select all
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
However, after this call, the entire CEGUI interface also turn into wireframe mode.
Is there anyway to prevent CEGUI interface from being affected by this call?
Moderators: CEGUI MVP, CEGUI Team
Code: Select all
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
YaronCT wrote:@bitxue: Simply change it back b4 calling "CEGUI::System::renderAllGUIContexts()".
Code: Select all
bool onWireFrame(const CEGUI::EventArgs& e)
{
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
CEGUI::System::getSingleton().renderAllGUIContexts();
return true;
}
Code: Select all
drawFrame()
{
...
if (wireFrameMode)
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
RenderScene();
...
if (wireFrameMode)
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
CEGUI::System::getSingleton().renderAllGUIContexts();
...
}
YaronCT wrote:@bitxue: Yes, that's what I meant..
YaronCT wrote:@bitxue: I see all threads, no need to refer me.
Users browsing this forum: No registered users and 8 guests