[Solved] CEGUI custom rendering
Posted: Sun Nov 12, 2017 15:19
My goal is to draw a child window separately so that i can draw things in between the rendering process of GUI
my draw function looks something like this
I also tried to draw Parent with the same method but without the disabling, nothing's on the screen.
I must be using Window::render() wrong and I can't find any information in the docs or in src that helps.
my draw function looks something like this
Code: Select all
GetRenderer()->beginRendering();
Child->setVisible(0); //make it invisible first so that <Parent> doesn't draw it
Context->draw(); //draw the context that contains <Parent>
/*
draw stuff from my game
*/
Child->setVisible(1);
Child->activate();
Child->render(); //doesn't draw anything
GetRenderer()->endRendering();
I also tried to draw Parent with the same method but without the disabling, nothing's on the screen.
I must be using Window::render() wrong and I can't find any information in the docs or in src that helps.