Comparing the TriMesh and VboMesh in Cinder 16 August 2014
I kept running into a random segfault when trying to draw anything using the
VboMesh so I
went looking for some super basic sample code. The closest thing I found was
this slightly broken example.
So I spent a little time cleaning it up, then got it drawing equilateral
I started wondering if I should be using the
instead, so I decided to try implementing the drawing that way so I could
compare the code. It ended up a little cleaner, but since my goal is to have
colors change when you touch a triangle, I’ll probably stick with the
so I can use dynamic colors.
Here’s the code in case it’s helpful for anyone else: