Why is there no circle or ellipse primitive in OpenGL?

前端 未结 5 2259
执念已碎
执念已碎 2021-02-12 16:50

Circles are one of the basics geometric entities. Yet there is no primitives defined in OpenGL for this, like lines or polygons. Why so? It\'s a little annoying to include custo

5条回答
  •  渐次进展
    2021-02-12 17:33

    You could always use gluSphere (if a three-dimensional shape is what you're looking for).

    If you want to draw a two-dimensional circle you're stuck with custom methods. I'd go with a triangle fan.

    The primitives are called primitives for a reason :)

提交回复
热议问题