How to draw a circle using VBO in ES2.0
Here’s some code fragments for rendering a circle. I haven’t compiled or run this code, so there’s a possibility of (hopefully minor) typos. To prepare the VBO, which would be done once: // Number of segments the circle is divided into. const unsigned DIV_COUNT = 32; // Will use a triangle fan rooted at the … Read more