Quantcast
Viewing all articles
Browse latest Browse all 40524

Best way to draw an array of objects

i am trying the simplest way for start. But i am getting a weird shape.
I know that in openGL it is important to take care of drawing modes and such. Or maybe something dealing with vertex index ?

radius = 150;

path.arc(0, 0, radius, radius, 0, 360);

mesh = path.getTessellation();

ofPoint center(ofGetWidth() / 2, ofGetHeight() / 2);

for (int i = 0; i < mesh.getVertices().size(); i++) {
     vboMesh.addVertex(mesh.getVertex(i) + center);
}


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>