Reputation: 11920
I'm drawing a point cloud with different colors of points with this:
glEnableClientState(GL_VERTEX_ARRAY);
glEnableClientState(GL_COLOR_ARRAY);
glVertexPointer(3, GL_FLOAT, 0, vertices.get());
glColorPointer(3, GL_FLOAT, 0, colors.get());
glDrawArrays(GL_POINTS, 0, n);
glDisableClientState(GL_VERTEX_ARRAY);
glDisableClientState(GL_COLOR_ARRAY);
is there a way to tell glDrawArrays (or the default shader) to use another client state for size of each point?
Upvotes: 1
Views: 635
Reputation: 137
If there was, that would be terribly inefficient!
If you don't get what I am suggesting, you must then begin by learning the modern OpenGL way of rendering :)
Upvotes: 2