Quantcast
Viewing all articles
Browse latest Browse all 40524

Best way to draw an array of objects

yes i have already read the ofPath, ofPolyline, ofVboMesh and opendGL doc.
I tried with indices. I also tried your example :

ofPolyline circle;
circle.arc(0,0,radius,radius,0,360);
for(int i=0; i<circle.getVertices().size(); i+=2){
    circleMesh.addVertex(circle[i]);
    circleMesh.addVertex(circle[i+1]);
    circleMesh.addVertex(ofVec3f(0,0));
}

but no luck so far. I must be doing something wrong.


Viewing all articles
Browse latest Browse all 40524

Trending Articles



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