Cube coordinates are stored in vertices array in Cube.java. Rotating effect is achieved via model view matrix modification (glTranslate and glRotate commands). Original vertex data isn't modified.
On Jun 17, 8:30 pm, quill <quill...@163.com> wrote: > Hi all, > I'm modifying Kube(api demo) to a game, does anyone who know how to > get the vertice coodinates of Kube? From the source code in api demo, > I think GLWorld.mVertexBuffer may save the vertice coodinates after > rotate the Kube, but I was wrong, the infomation in mVertexBuffer > always remains the same. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---