renderFrame and 2D objects

Hello,

I am not sure I understand why when a invoke the renderFrame method, it renders only the 3D objects and not the 2D objects I rendered through the OnscreenText and OnscreenImage methods.

I am using the renderFrame to transfer all the objects to the window and works only with the 3D objects.

So my question is, how does the OnscreenText and OnscreenImage for 2D objects work? - is there a way to work around this?

Thank you in advance

There’s no special consideration for 2D objects with regards to rendering frames. renderFrame renders all the display regions on every window, both the 2D and 3D ones alike, so something else must be going wrong in your code.

Note that due to double buffering, the results of the previous frame become available at the beginning of the next frame. So if you are expecting to see changes you made this frame, you will need two calls to renderFrame.