How to create a wireframe with back frames invisible

I want to create a wireframe with no back frames by using glbegin(GL_LINE_LOOP), or other patterns, I don’t know whether glcullface is valid in this implementation, if not, how can I do it?

http://opengl.org/resources/faq/technical/miscellaneous.htm#misc0010

No, but you can use glPolygonMode to do this, then cull face is valid.

glPolygonMode (GL_FRONT, GL_LINE); //draw as wireframes

glPolygonMode (GL_FRONT, GL_FILL); //draw as filled polygons