Here is an approach to draw a regular polygon using Android OpenGL.

by Satya Komatineni » Wed, 08 Jul 2009 06:57:38 GMT


Sponsored Links
 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

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Play Video Files in Android

Hello,

Please let me know how to play the Video Files in the Media Palyer of
the Android.
I have push the .mp4 file inside the SD Card.

Jatin
--~--~---------~--~----~------------~-------~--~----~

2. Fast Scroll drag handle similar to Contacts ListView

Hi,

The "FastScrollView" is currently implemented in the Contacts
application itself. It will be part of a future SDK update though.

You can find the current implementation in the source code at
http://source.android.com






-- 
Romain Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~

3. Problem with screenshot

4. how to switch gmail account attached to the gphone?

5. FTP Client

6. Orientation change on non-front activity?

7. getLastKnownLocation is not working.