2D user interface in front of the 3D scene?

Started by doc.ios, October 28, 2010, 07:22:15 PM

Previous topic - Next topic

doc.ios

What is the jPCT-AE way of drawing buttons, text and UI stuff in front of the 3D scene?  A layer that doesn't move when the 3D stuff behind it does stuff.

EgonOlsen

Loading the GUI components into textures and blit them...at least that's what i do. There's no such thing as a gui library, so if your gui is more complex, you might want to write yourself some simple gui classes. The source code of Robombs (http://jpct.de/robombs.game/download/) contains some very simple gui classes.