OpenGL ES iPhone - drawing anti aliased lines
问题 Normally, you\'d use something like: glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_BLEND); glEnable(GL_LINE_SMOOTH); glLineWidth(2.0f); glVertexPointer(2, GL_FLOAT, 0, points); glEnableClientState(GL_VERTEX_ARRAY); glDrawArrays(GL_LINE_STRIP, 0, num_points); glDisableClientState(GL_VERTEX_ARRAY); It looks good in the iPhone simulator, but on the iPhone the lines get extremely thin and w/o any anti aliasing. How do you get AA on iPhone? 回答1: One can achieve the effect of anti