OpenGL -- What is the most efficient way to draw an oval in OpenGL?
I have been using TRIANGLE_FAN and drawing like 90 triangles. What's a better wa开发者_如何学Cy?
Look at this page drawing. It explain 2 different methods.
EDIT:
I was forgetting about nurbs. You could also use them . Have a look here
That's pretty much it, you can adjust that 90 up or down to your liking (or make it dependent on how big it is on-screen, or you could go the route of a geometry shader.
If you are ok with it not being geometry-based, just create a texture that is in the shape of an oval, and apply it to a quad.
精彩评论