'\" t .\" Title: glFrontFace .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 01/03/2018 .\" Manual: [FIXME: manual] .\" Source: [FIXME: source] .\" Language: English .\" .TH "GLFRONTFACE" "3G" "01/03/2018" "[FIXME: source]" "[FIXME: manual]" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" glFrontFace \- define front\- and back\-facing polygons .SH "C SPECIFICATION" .HP \w'void\ glFrontFace('u .BI "void glFrontFace(GLenum\ " "mode" ");" .SH "PARAMETERS" .PP \fImode\fR .RS 4 Specifies the orientation of front\-facing polygons\&. \fBGL_CW\fR and \fBGL_CCW\fR are accepted\&. The initial value is \fBGL_CCW\fR\&. .RE .SH "DESCRIPTION" .PP In a scene composed entirely of opaque closed surfaces, back\-facing polygons are never visible\&. Eliminating these invisible polygons has the obvious benefit of speeding up the rendering of the image\&. To enable and disable elimination of back\-facing polygons, call \fBglEnable\fR() and \fBglDisable\fR with argument \fBGL_CULL_FACE\fR\&. .PP The projection of a polygon to window coordinates is said to have clockwise winding if an imaginary object following the path from its first vertex, its second vertex, and so on, to its last vertex, and finally back to its first vertex, moves in a clockwise direction about the interior of the polygon\&. The polygon\*(Aqs winding is said to be counterclockwise if the imaginary object following the same path moves in a counterclockwise direction about the interior of the polygon\&. \fBglFrontFace\fR specifies whether polygons with clockwise winding in window coordinates, or counterclockwise winding in window coordinates, are taken to be front\-facing\&. Passing \fBGL_CCW\fR to \fImode\fR selects counterclockwise polygons as front\-facing; \fBGL_CW\fR selects clockwise polygons as front\-facing\&. By default, counterclockwise polygons are taken to be front\-facing\&. .SH "ERRORS" .PP \fBGL_INVALID_ENUM\fR is generated if \fImode\fR is not an accepted value\&. .SH "ASSOCIATED GETS" .PP \fBglGet\fR() with argument \fBGL_FRONT_FACE\fR .SH "VERSION SUPPORT" .TS allbox tab(:); lB cB s s s s s s s s s s s lB cB cB cB cB cB cB cB cB cB cB cB cB. T{ T}:T{ \fBOpenGL Version\fR T} T{ \fBFunction / Feature Name\fR T}:T{ \fB2\&.0\fR T}:T{ \fB2\&.1\fR T}:T{ \fB3\&.0\fR T}:T{ \fB3\&.1\fR T}:T{ \fB3\&.2\fR T}:T{ \fB3\&.3\fR T}:T{ \fB4\&.0\fR T}:T{ \fB4\&.1\fR T}:T{ \fB4\&.2\fR T}:T{ \fB4\&.3\fR T}:T{ \fB4\&.4\fR T}:T{ \fB4\&.5\fR T} .T& l c c c c c c c c c c c c. T{ \fBglFrontFace\fR T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T} .TE .sp 1 .SH "SEE ALSO" .PP \fBglCullFace\fR(), .SH "COPYRIGHT" .PP Copyright \(co 1991\-2006 Silicon Graphics, Inc\&. Copyright \(co 2010\-2014 Khronos Group\&. This document is licensed under the SGI Free Software B License\&. For details, see \m[blue]\fBhttp://oss\&.sgi\&.com/projects/FreeB/\fR\m[]\&. .SH "COPYRIGHT" .br Copyright \(co 1991-2006 Silicon Graphics, Inc. .br Copyright \(co 2010-2014 Khronos Group .br