
I am starting game development with OpenGL as Android developer. So far I've been C++ developer and I think I won't have any problems (not so far) in learning OpenGL wrapped within Android. I am having though some questions that I'd like to hear from professionals but none in my surroundings exist, nor I've found info online:
1. I have created simple button over GLSurfaceView. The button is not Android button (View) but a simple Rect drawn with OpenGL and with Texture on it. When the user clicks on it I need some operation to be performed. I can't find way to map the 'rect' over the GLSurfaceView so that I check whether the user has clicked over the rect where the 'button' is drawn (I can't map the button's coordinates within the surface view).
2. I don't get the whole GLSurfaceView with the change of views and renderer. I.e. when the user clicks "Start" I need another view to appear showing another drawn elements on it. I suppose I would need another View but I guess I don't need another Renderer. How do I tell the same renderer (for different views) to draw/behave differently? I.e. to render different objects?
Thanks in advance,
bashing and critics is welcomed.



