05-27-2013 01:50 AM - edited 05-27-2013 02:28 AM
I am working on a project which used OpenGL ES 1.1. Now I wanna place some Menus & Buttons there, looking a bit like a HUD.
What is the preferred way to do something like this?
I understand there'll probably be many games using this since it seems quiet natural.
Is it possible to use Qt on top of OpenGL surface?
Are there some Demo-Apps out there who do exactly this?
I searched for it, but couldn't really find anything that adressed this issue.
Solved! Go to Solution.
05-27-2013 01:05 PM
Own UI -> you want a Button.
Draw a rectangular with rounded corners, put some text in it.
In main event processing look listen for touch event. On touch event check whether a user touched within your Button boundaries, if yes change look of your button to Pressed (opional) and react to this Press event.
Yes that's a lot of work. I did it once for one app and it does require a lot of coding.
On a plus side once you develop this 'infrastructure' of your own UI then you can reuse it in your all apps.