- shape->Vertices(vertices, pos);
- colors.insert(colors.end(), shape->VertexCount(), color);
- shape->Normals(normals);
+ shape->Vertices(buf.vertices, buf.normals, buf.indices, pos_offset, idx_offset);
+ buf.colors.insert(buf.colors.end(), shape->VertexCount(), color);