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. Fragment, how to send message from one fragment to another

If I click a button in one fragment, what is the best way to get a
response in another fragment?

eg click button in fragment1 which displays text in a TextView in
fragment2.

which is the best approach here?

-- 

2. Set Android WIFI Ip address from my own application

Hi All,

I wanna set android wifi ip address from my own application is there
any way?

i've post this question few months back didnt get any proper solution,
so i m reposting this question.

Regards,
Faheem

-- 

3. update xperiax10 ke froyo

4. hi, help a newbie :)

5. Komutta v0.6

6. Miring androider Depok hari ini

7. Wifi Error di Samsung GALAXY 551i