glCullFace( GL_BACK ); Does this funtion what it says?
I found this functions in gl.h;
glCullFace( GL_BACK );
glEnable( GL_CULL_FACE );
Do these funtions really what they mean (culling backfaces)?
Do they speed up displaying TRIANGLE STRIPS etc.?
Quote from the MSDN :
"
The glCullFace function specifies whether front- or back-facing facets are culled (as specified by mode) when facet culling is enabled. You enable and disable facet culling using glEnable and glDisable with the argument GL_CULL_FACE. Facets include triangles, quadrilaterals, polygons, and rectangles.
"
"
The glCullFace function specifies whether front- or back-facing facets are culled (as specified by mode) when facet culling is enabled. You enable and disable facet culling using glEnable and glDisable with the argument GL_CULL_FACE. Facets include triangles, quadrilaterals, polygons, and rectangles.
"
I''m not an OpenGL expert but I don''t think these functions involve any speed increase. It''s just a way to call OpenGL what order you use when you give it vertices.
With back faces culling enabled, only one half (on average) of the faces of a standard scene will be displayed, so if your application is limited by the fill rate of your 3D card you should get a noticeable fps increase.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement