Author Topic: 2D user interface in front of the 3D scene?  (Read 1514 times)

Offline doc.ios

  • byte
  • *
  • Posts: 4
    • View Profile
2D user interface in front of the 3D scene?
« 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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: 2D user interface in front of the 3D scene?
« Reply #1 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/) contains some very simple gui classes.