View Full Version : TWO SIDES
04-16-2001, 12:56 PM
By default OpenGL use the two sides polygon mode. How to set a SINGLE SIDES POLYGON MODE? I think this mode works faster.
Thanks for help...
04-16-2001, 01:40 PM
If you enabled face culling, that's just okay.
I think it is as easy as glEnable( GL_CULL_FACE)
04-16-2001, 11:04 PM
Are you thinking of glPolygonMode(GLenum face, GLenum mode);? Parameters for face are GL_FRONT_AND_BACK, GL_FRONT or GL_BACK. Parameters for mode are GL_POINT, GL_LINE OR GL_FILL.
I think that what you want is what Michael says - a combination of setting the polygon winding with glFrontFace();, telling OpenGL which face to cull with glCullFace(); and enabling culling with glEnable(GL_CULL_FACE);
04-17-2001, 02:52 AM
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.