GLPOLYGONMODE
NAMEC SPECIFICATION
PARAMETERS
DESCRIPTION
EXAMPLES
NOTES
ERRORS
ASSOCIATED GETS
SEE ALSO
NAME
glPolygonMode − select a polygon rasterization mode
C SPECIFICATION
void glPolygonMode( GLenum face,
GLenum mode ) |
PARAMETERS
face |
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. | ||
mode |
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. |
DESCRIPTION
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:
GL_POINT |
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. | ||
GL_LINE |
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. | ||
GL_FILL |
The interior of the polygon is filled. Polygon attributes such as GL_POLYGON_STIPPLE and GL_POLYGON_SMOOTH control the rasterization of the polygon. |
EXAMPLES
To draw a surface with filled back-facing polygons and outlined front-facing polygons, call glPolygonMode(GL_FRONT, GL_LINE);
NOTES
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.
ERRORS
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.
ASSOCIATED GETS
glGet with argument GL_POLYGON_MODE
SEE ALSO
glBegin(3G), glEdgeFlag(3G), glLineStipple(3G), glLineWidth(3G), glPointSize(3G), glPolygonStipple(3G)
More Linux Commands
manpages/getlogin_r.3.html
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
manpages/DPMSDisable.3.html
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
manpages/XkbAddGeomOutline.3.html
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
manpages/gnutls_pkcs7_get_crl_raw.3.html
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
manpages/inet_netof.3.html
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
manpages/truncate64.2.html
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
manpages/cacoshl.3.html
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
manpages/mga.4.html
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
manpages/access.conf.5.html
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
manpages/calloc.3.html
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
manpages/Mail::DKIM::TextWrap.3pm.html
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
manpages/policytool-java-1.8.0-openjdk.1.html
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
