Ah, of course. Do'h.
Okay, so to my understanding your code does this:
- adds 4 vertices
- adds 2 triangles ("attached/based on vertices")
- then does some magic placing vertices, which together help form a quad
- all these are inside 1 mesh
And basically, I could "just" add more vertices, triangles and move them around... to get meh quad done.
And then after I have my mesh, I can paint it.
And... hmm, what about physics. Is there tool for creating mesh physics via leadwerks, so that I get collisions? (in case the mesh is self-built)
Of course... there's still stuff like adding layers so that I can have my "sand" portion and "grass" portion using different materials, but that's something to worry later.