0

How can I draw an Ellipse using openGL ES

Neenu
  • 1

2 Answers2

1

There are many good tutorials that help you to learn Open GL ES. These tutorials particularly give examples to draw Ellipse, Circle, Square etc..

Some are here,

  1. OpenGL ES for iPhone tutorial - By Simon Maurice
  2. Open GL 2.0 for iPhone tutorial - by Ray Wenderlich
  3. Resources for iPhone OpenGL ES - Beginners / Intermediate

Best Wishes

Natasha
  • 31
  • 5
0

Draw a bunch of line segments around the circumference.

Also note that your system may not support anti-aliased lines (the iPhone doesn't). There's a nice article on drawing antialiased lines here. You can do something similar to draw the line segments (though you don't need the end-caps, so it's a bit simpler).

Another solution to anti-aliasing that requires more polygons is here.

Community
  • 1
  • 1
Marcelo Cantos
  • 181,030
  • 38
  • 327
  • 365