Harton
Member
|
Separation rendering world from drawing gui
Hello,
I would like ask you about separation rendering world from drawing gui in the editor.
Currently, when I want draw everything, I called only one function: 'StateDraw();' but when I want get backbuffer - 'Renderer.getBackBuffer()', I have image with gui. I don't want see gui on my objects in the world.
Could you separate rendering world from drawing gui in editor?
Regards
Harton
|
|
06-01-2013 08:43 PM |
|
fatcoder
Member
|
RE: Separation rendering world from drawing gui
You need to call Renderer.getBackBuffer() before Gui.draw().
|
|
06-02-2013 01:09 AM |
|
Harton
Member
|
RE: Separation rendering world from drawing gui
Thanks for answer but I use Esenthel Engine for a long time and I know it.
Problem is different. In editor sources I don't call Gui.draw() because this function is called in StateDraw() and I call only the last function. I can't separate drawing gui from rendering world.
|
|
06-02-2013 08:45 AM |
|
Esenthel
Administrator
|
RE: Separation rendering world from drawing gui
Hi, this can't be done because the world is rendered in a viewport which is inside the Gui itself (thus Gui.draw draws gui, viewports and the 3d world)
|
|
06-02-2013 02:31 PM |
|