Drawing lines on top

I’m working on an app that draws many polys and lines. I want certain lines to draw on top of everything else. How do I do this? Right now I have

glBegin(GL_LINE_LOOP);
glVertex3d(v1x, v1y, v1z);
glVertex3d(v2x, v2y, v2z);
glVertex3d(v3x, v3y, v3z);
glVertex3d(v4x, v4y, v4z);
glEnd();

It’s drawing the line underneath everything.

Thanks for your help.

Stephanie

If you disable depth testing (glDisable(GL_DEPTH_TEST)), any new line will be drawn over the old ones. That however disables the z-test, so also object that you would like not to see might be drawn then.

I think you might find glPolygonOffset to be of use.

Yeah, DFrey, you’re always falling in my back with your idiotic answers. Geez. Well, just cleaned my room (or how’d you say?). Gives a great flair and feeling. You should clean your room as well! Well, I’m a bit unclean in the other time…

Oh, say, Stephanie, what’s your age?

Thanks to everyone for all the help. I think I have it.

Just out of curiosity, why is my age relevant?

Stephanie

Well, your name appeared to be feminine…