View Full Version : How to create a wireframe with back frames invisible
suponlyzx
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?
ZbuffeR
10-16-2006, 07:35 AM
http://opengl.org/resources/faq/technical/miscellaneous.htm#misc0010
zeoverlord
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 © 2018 vBulletin Solutions, Inc. All rights reserved.