www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: doc.ios on October 28, 2010, 07:22:15 pm

Title: 2D user interface in front of the 3D scene?
Post by: doc.ios on October 28, 2010, 07:22:15 pm
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.
Title: Re: 2D user interface in front of the 3D scene?
Post by: EgonOlsen on October 28, 2010, 09:00:50 pm
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/ (http://jpct.de/robombs.game/download/)) contains some very simple gui classes.