How many vertices does a triangle fan use opengl

后端 未结 4 934
轮回少年
轮回少年 2021-01-03 01:44

I am learning openGL, and i have come across triangle fans using vertex buffer objects. If given an array of vertices to render, how does openGL decide how many of those ve

4条回答
  •  渐次进展
    2021-01-03 02:40

    That is specified by the command which you use to do the rendering. For example both drawArrays() and drawElements() have a count parameter which specifies the number of vertices to use.

提交回复
热议问题