Is it possible to draw Android Controls on top of GLSurfaceView?
Hachaso wrote:Do you mean that I should to this with XML?
How is this done with JAVA coding?
mb_zi wrote:it might not be what you're after... but you could make a button in in open gl via a textured quad. all you need to do is check if the user presses in a certain x and y bounded area aka on the textured quad and if so change textures briefly (whilst the person is pressing in the right area) and do what you want it to achieve in the surface view.
e.g. if your button textured quad fills the bottom 8% of the screen from left to right. using below would check if the user presses within the button area.
Users browsing this forum: No registered users and 3 guests