I'm using vertex array to draw 2d geometry, but I can't achieve smoothness.
This is the code I'm using:
glEnableClientState(GL_COLOR_ARRAY);
glEnableClientState(GL_VERTEX_ARRAY);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
glColorPointer(4, GL_UNSIGNED_BYTE, 0, shared_colors);
glVertexPointer(3, GL_FLOAT, 0, shared_vertex);
glDrawArrays(GL_LINES, 0, shared_counter);
glDisableClientState(GL_VERTEX_ARRAY);
glDisableClientState(GL_COLOR_ARRAY);
glDisable(GL_BLEND);
Some advice?
GL_LINE_SMOOTH
to work properly (which I think is what the OP wants, although "smoothness" is a bit vague a term). \$\endgroup\$