IGUIEnvironment::drawAll() is required?
Posted: Sun Jan 09, 2011 6:52 am
So I've just run into a problem where it seems that the IGUIEnvironment::drawAll() function must be called to render Gui elements.
I was trying to render them individually myself by calling the draw() function for each element.
The reason I need to do this is because I need to render non-gui stuff in between Gui elements as I have non-gui stuff that must be drawn over some gui elements but under others.
But if you don't call the drawAll() function then CGUIEnvironment::OnPostRender() is never called (and I cannot call it myself as it is not exposed in the interface).
If this doesn't get called then tool tips don't get displayed and scroll bars don't work correctly. There may be other side effects but I haven't noticed them yet.
This dependency on drawAll() seems bad.
I guess the solution would be to expose OnPostRender() assuming that's the only issue with not calling drawAll().
I was trying to render them individually myself by calling the draw() function for each element.
The reason I need to do this is because I need to render non-gui stuff in between Gui elements as I have non-gui stuff that must be drawn over some gui elements but under others.
But if you don't call the drawAll() function then CGUIEnvironment::OnPostRender() is never called (and I cannot call it myself as it is not exposed in the interface).
If this doesn't get called then tool tips don't get displayed and scroll bars don't work correctly. There may be other side effects but I haven't noticed them yet.
This dependency on drawAll() seems bad.
I guess the solution would be to expose OnPostRender() assuming that's the only issue with not calling drawAll().