View Full Version : How to create a wireframe with back frames invisible
10-16-2006, 07:18 AM
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?
10-16-2006, 07:35 AM
10-16-2006, 07:36 AM
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
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.