If you are new to OpenGL and also happen to be experimenting with OpenGL and Android here is an article that I cooked up that explains how to draw any regular polygon at any origin on the scene.
The design approach is simple enough: start by defining a regular polygon with the help of a radius, number of sides and its origin. Then calculate the vertices for each side of the polygon. Use GL_TRIANGLES to draw multiple triangles to make up the polygon. Then have the RegularPolygon provide these vertices and necessary indecies as an array to the drawing class. You can see the full article and source code at http://www.knowledgefolders.com/akc/display?url=DisplayNoteIMPURL&reportId=3189&ownerUserId=satya --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

