open GL ES basis applications
How can I draw an Ellipse using op开发者_如何学PythonenGL ES
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,
- OpenGL ES for iPhone tutorial - By Simon Maurice
- Open GL 2.0 for iPhone tutorial - by Ray Wenderlich
- Resources for iPhone OpenGL ES - Beginners / Intermediate
Best Wishes
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.
精彩评论