glPolygonMode − select a polygon rasterization mode
void glPolygonMode( GLenum face,
GLenum mode )
Specifies the polygons that mode applies to. Must be GL_FRONT for front-facing polygons, GL_BACK for back-facing polygons, or GL_FRONT_AND_BACK for front- and back-facing polygons.
Specifies how polygons will be rasterized. Accepted values are GL_POINT, GL_LINE, and GL_FILL. The initial value is GL_FILL for both front- and back-facing polygons.
glPolygonMode controls the interpretation of polygons for rasterization. face describes which polygons mode applies to: front-facing polygons (GL_FRONT), back-facing polygons (GL_BACK), or both (GL_FRONT_AND_BACK). The polygon mode affects only the final rasterization of polygons. In particular, a polygon’s vertices are lit and the polygon is clipped and possibly culled before these modes are applied.
Three modes are defined and can be specified in mode:
Polygon vertices that are marked as the start of a boundary edge are drawn as points. Point attributes such as GL_POINT_SIZE and GL_POINT_SMOOTH control the rasterization of the points. Polygon rasterization attributes other than GL_POLYGON_MODE have no effect.
Boundary edges of the polygon are drawn as line segments. They are treated as connected line segments for line stippling; the line stipple counter and pattern are not reset between segments (see glLineStipple). Line attributes such as GL_LINE_WIDTH and GL_LINE_SMOOTH control the rasterization of the lines. Polygon rasterization attributes other than GL_POLYGON_MODE have no effect.
The interior of the polygon is filled. Polygon attributes such as GL_POLYGON_STIPPLE and GL_POLYGON_SMOOTH control the rasterization of the polygon.
To draw a surface with filled back-facing polygons and outlined front-facing polygons, call glPolygonMode(GL_FRONT, GL_LINE);
Vertices are marked as boundary or nonboundary with an edge flag. Edge flags are generated internally by the GL when it decomposes polygons; they can be set explicitly using glEdgeFlag.
GL_INVALID_ENUM is generated if either face or mode is not an accepted value.
GL_INVALID_OPERATION is generated if glPolygonMode is executed between the execution of glBegin and the corresponding execution of glEnd.
glGet with argument GL_POLYGON_MODE
glBegin(3G), glEdgeFlag(3G), glLineStipple(3G), glLineWidth(3G), glPointSize(3G), glPolygonStipple(3G)
More Linux Commands
getlogin_r(3) - get username (Library - Linux man page).....
getlogin() returns a pointer to a string containing the name of the user logged in on the controlling terminal of the process, or a null pointer if this informa
DPMSDisable(3) - disables DPMS on the specified display.....
The DPMSDisable function disables Display Power Management Signaling (DPMS) on the specified display. When disabled, DPMS sets the display to DPMSModeOn. If DPM
XkbAddGeomOutline(3) - Add one outline to an existing shape
XkbAddGeomOutline.3 - Xkb provides functions to add a single new element to the top-level keyboard geometry. In each case the num_ * fields of the corresponding
gnutls_pkcs7_get_crl_raw(3) - API function - Linux man page
This function will return a crl of the PKCS7 or RFC2630 crl set. RETURNS On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. If the
inet_netof(3) - Internet address manipulation routines......
inet_aton() converts the Internet host address cp from the IPv4 numbers-and-dots notation into binary form (in network byte order) and stores it in the structur
truncate64(2) - truncate a file to a specified length.......
The truncate() and ftruncate() functions cause the regular file named by path or referenced by fd to be truncated to a size of precisely length bytes. If the fi
cacoshl(3) - complex arc hyperbolic cosine - Linux man page
The cacosh() function calculates the complex arc hyperbolic cosine of z. If y = cacosh(z), then z = ccosh(y). The imaginary part of y is chosen in the interval
mga(4) - Matrox video driver (Special - Linux man page).....
mga is an Xorg driver for Matrox video cards. The driver is fully accelerated, and provides support for the following framebuffer depths: 8, 15, 16, 24, and an
access.conf(5) - the login access control table file........
The /etc/security/access.conf file specifies (user/group, host), (user/group, network/netmask) or (user/group, tty) combinations for which a login will be eithe
calloc(3) - Allocate and free dynamic memory (Man Page).....
The malloc() function allocates size bytes and returns a pointer to the allocated memory. The memory is not initialized. If size is 0, then malloc() returns eit
Mail::DKIM::TextWrap(3pm) - text wrapping module written for
This is a general-purpose text-wrapping module that I wrote because I had some specific needs with Mail::DKIM that none of the contemporary text-wrapping module
policytool-java-1.8.0-openjdk(1) Reads and writes a plain te
The policytool command calls an administrators GUI that enables system administrators to manage the contents of local policy files. A policy file is a plain-tex