i use OpenGL and SDL to render a 3d scene. its work good but when i integrate it with CEGUI i can't see it more...
This is my code...
My render function:
Code: Select all
void Application::renderScene(){
glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glMatrixMode (GL_MODELVIEW);
glLoadIdentity ();
// i draw here
SDL_GL_SwapBuffers();
}
my cegui render:
Code: Select all
void Application::renderGui()
{
/* clear the colour buffer */
glClear( GL_COLOR_BUFFER_BIT );
/* render the GUI :) */
CEGUI::System::getSingleton().renderGUI();
/* Update the screen */
SDL_GL_SwapBuffers();
}
Code: Select all
void Application::start(){
initSDL();
initOGL();
initGUI();
setGUI();
while (!end){
renderScene();
renderGUI();
}
}
if i render GUI, i can't see the 3d...only the GUI....anymore can help me?
thx in adavance


