jeudi 27 mars 2014

Whats the best way to switch between a normal view and a GLsurface view, Andriod


Vote count:

0




I am currently making a game, the game has a start screen and the main game screen.


My question is what is the best way to switch between the two views.


The start screen consists of just a couple of buttons one being "start game", when this is clicked i want the game to start.


If i create the GLsurface view at the begining and bind the renderer here then anything from the GL surface view is displayed on top of the start up screen.


I thought i could create a viewflipper which would default to the start screen and then just create the glsurface view within the onclick method for the start button, but this doesnt seem to like having the GLsurface view in it.


Does viewFlipper support Glsurface view or is there a better way round this.


Thanks.



asked 22 secs ago






Aucun commentaire:

Enregistrer un commentaire