GL_POINT, GL_LINE_STRIP

Hi All,

Why if I draw 5 black points with glPointSize(4) and 4 white lines to connect these points I always see the lines in front of points? Is there a way to render before lines than points?

Thanks a lot & happy 2008!

Alberto

Draw lines first, then points.
If that doesn’t work use glPolygonOffset.

look up how to use it here.

Alternatively, if nothing should ever occlude the points, just glDisable( GL_DEPTH_TEST ) (and draw the points last, as zeoverlord suggested).

glDisable(GL_DEPTH_TEST) worked. Thanks!

Alberto