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. N900 running droid?

Baru baca artikel bisa dual boot, running Maemo5 and droid :)


~AJ

-- 
-----------------
"Indonesian Android Community [id-android]" 

2. Running multiple emulator on same desktop

Hi,

If I run multiple emulator on same desktop, is there anyway that I can
assign an ip address to each of them (for testing purpose). So that
each emulator can communicate to another using ip address?

Thank you.

-- 

3. How to get the USB device list of an Android device?

4. Android netbook support?

5. please clear this doubts

6. Droid overclocked to...

7. How to lock key, but keep the display active?