1GLFRONTFACE(3G)                 [FIXME: manual]                GLFRONTFACE(3G)
2
3
4

NAME

6       glFrontFace - define front- and back-facing polygons
7

C SPECIFICATION

9       void glFrontFace(GLenum mode);
10

PARAMETERS

12       mode
13           Specifies the orientation of front-facing polygons.  GL_CW and
14           GL_CCW are accepted. The initial value is GL_CCW.
15

DESCRIPTION

17       In a scene composed entirely of opaque closed surfaces, back-facing
18       polygons are never visible. Eliminating these invisible polygons has
19       the obvious benefit of speeding up the rendering of the image. To
20       enable and disable elimination of back-facing polygons, call glEnable()
21       and
22
23       glDisable with argument GL_CULL_FACE.
24
25       The projection of a polygon to window coordinates is said to have
26       clockwise winding if an imaginary object following the path from its
27       first vertex, its second vertex, and so on, to its last vertex, and
28       finally back to its first vertex, moves in a clockwise direction about
29       the interior of the polygon. The polygon's winding is said to be
30       counterclockwise if the imaginary object following the same path moves
31       in a counterclockwise direction about the interior of the polygon.
32       glFrontFace specifies whether polygons with clockwise winding in window
33       coordinates, or counterclockwise winding in window coordinates, are
34       taken to be front-facing. Passing GL_CCW to mode selects
35       counterclockwise polygons as front-facing; GL_CW selects clockwise
36       polygons as front-facing. By default, counterclockwise polygons are
37       taken to be front-facing.
38

ERRORS

40       GL_INVALID_ENUM is generated if mode is not an accepted value.
41

ASSOCIATED GETS

43       glGet() with argument GL_FRONT_FACE
44

VERSION SUPPORT

46       ┌────────────┬───────────────────────────────────────────────────────────────────────┐
47       │            │                OpenGL Version                                         
48       ├────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
49Function    2.0 2.1 3.0 3.1 3.2 3.3 4.0 4.1 4.2 4.3 4.4 4.5 
50/           │     │     │     │     │     │     │     │     │     │     │     │     │
51Feature     │     │     │     │     │     │     │     │     │     │     │     │     │
52Name        │     │     │     │     │     │     │     │     │     │     │     │     │
53       ├────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
54glFrontFace │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
55       └────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
56

SEE ALSO

58       glCullFace(),
59
61       Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2010-2014
62       Khronos Group. This document is licensed under the SGI Free Software B
63       License. For details, see http://oss.sgi.com/projects/FreeB/.
64
66       Copyright © 1991-2006 Silicon Graphics, Inc.
67       Copyright © 2010-2014 Khronos Group
68
69
70
71[FIXME: source]                   03/06/2019                   GLFRONTFACE(3G)
Impressum