drawMesh() accepts Mesh2DVertexBuffer, Mesh2DUVBuffer, Mesh2DIndexBuffer, and Mesh2DColorBuffer objects. But those objects appear to be just thin wrappers over Float32Arrays.
Could it just accept Float32Arrays directly? Then those objects don't need to be defined.
If those objects existing is especially useful because they represent some sort of pre-computation that happens at construction time, then it would be good to explain that in the explainer.
drawMesh()acceptsMesh2DVertexBuffer,Mesh2DUVBuffer,Mesh2DIndexBuffer, andMesh2DColorBufferobjects. But those objects appear to be just thin wrappers over Float32Arrays.Could it just accept Float32Arrays directly? Then those objects don't need to be defined.
If those objects existing is especially useful because they represent some sort of pre-computation that happens at construction time, then it would be good to explain that in the explainer.