Original Post
Hello, I'm wondering what's the proper approach to draw grids of different sizes. So far I'm using a buffer for grid transforms, another for point info.
for (size_t i=0;i<NUMGRIDS;i++)
{
size_t numpoints=grids[i].w*grids[i].h;
glVertexAttrib4f(gridAttrib,grids[i].x,grids[i].y.....);// grid pos&scale
glDrawArrays(GL_POINTS,offset,numpoints);
offset+=numpoints;
}
I don't think instancing is an option since grids don't have the same number of points.