GLLINEWIDTH
NAMEC SPECIFICATION
PARAMETERS
DESCRIPTION
NOTES
ERRORS
ASSOCIATED GETS
SEE ALSO
NAME
glLineWidth − specify the width of rasterized lines
C SPECIFICATION
void glLineWidth( GLfloat width )
PARAMETERS
width |
Specifies the width of rasterized lines. The initial value is 1. |
DESCRIPTION
glLineWidth specifies the rasterized width of both aliased and antialiased lines. Using a line width other than 1 has different effects, depending on whether line antialiasing is enabled. To enable and disable line antialiasing, call glEnable and glDisable with argument GL_LINE_SMOOTH. Line antialiasing is initially disabled.
If line antialiasing is disabled, the actual width is determined by rounding the supplied width to the nearest integer. (If the rounding results in the value 0, it is as if the line width were 1.) If $| DELTA x | ~>=~ | DELTA y |$, i pixels are filled in each column that is rasterized, where i is the rounded value of width. Otherwise, i pixels are filled in each row that is rasterized.
If antialiasing is enabled, line rasterization produces a fragment for each pixel square that intersects the region lying within the rectangle having width equal to the current line width, length equal to the actual length of the line, and centered on the mathematical line segment. The coverage value for each fragment is the window coordinate area of the intersection of the rectangular region with the corresponding pixel square. This value is saved and used in the final rasterization step.
Not all widths can be supported when line antialiasing is enabled. If an unsupported width is requested, the nearest supported width is used. Only width 1 is guaranteed to be supported; others depend on the implementation. Likewise, there is a range for aliased line widths as well. To query the range of supported widths and the size difference between supported widths within the range, call glGet with arguments GL_ALIASED_LINE_WIDTH_RANGE, GL_SMOOTH_LINE_WIDTH_RANGE, GL_SMOOTH_LINE_WIDTH_GRANULARITY.
NOTES
The line width specified by glLineWidth is always returned when GL_LINE_WIDTH is queried. Clamping and rounding for aliased and antialiased lines have no effect on the specified value.
Nonantialiased line width may be clamped to an implementation-dependent maximum. Call glGet with GL_ALIASED_LINE_WIDTH_RANGE to determine the maximum width.
ERRORS
GL_INVALID_VALUE is generated if width is less than or equal to 0.
GL_INVALID_OPERATION is generated if glLineWidth is executed between the execution of glBegin and the corresponding execution of glEnd.
ASSOCIATED GETS
glGet
with argument GL_LINE_WIDTH
glGet with argument GL_ALIASED_LINE_WIDTH_RANGE
glGet with argument GL_SMOOTH_LINE_WIDTH_RANGE
glGet with argument GL_SMOOTH_LINE_WIDTH_GRANULARITY
glIsEnabled with argument GL_LINE_SMOOTH
SEE ALSO
glEnable(3G)
More Linux Commands
manpages/uuid_copy.3.html
uuid_copy(3) - copy a UUID value (Library - Linux man page)
The uuid_copy function copies the UUID variable src to dst. RETURN VALUE The copied UUID is returned in the location pointed to by dst. AUTHOR Theodore Y. Tso A
manpages/sigsetjmp.3.html
sigsetjmp(3) - save stack context for nonlocal goto.........
setjmp() and longjmp(3) are useful for dealing with errors and interrupts encountered in a low-level subroutine of a program. setjmp() saves the stack context/e
manpages/XkbBell.3.html
XkbBell(3) - Rings the bell on the default keyboard.........
XkbBell.3 - The core X protocol allows only applications to explicitly sound the system bell with a given duration, pitch, and volume. Xkb extends this capabili
manpages/acl_delete_entry.3.html
acl_delete_entry(3) - delete an ACL entry - Linux man page
The acl_delete_entry() function removes the ACL entry indicated by the entry_d descriptor from the ACL pointed to by acl. Any existing ACL entry descriptors tha
manpages/profiles.1.html
profiles(1) - A utility to report and change SIDs in registr
This tool is part of the samba(7) suite. profiles is a utility that reports and changes SIDs in windows registry files. It currently only supports NT. OPTIONS f
manpages/scdaemon.1.html
scdaemon(1) - Smartcard daemon for the GnuPG system.........
The scdaemon is a daemon to manage smartcards. It is usually invoked by gpg-agent and in general not used directly. COMMANDS Commands are not distinguished from
manpages/automake-1.11.1.html
automake-1.11(1) - manual page for automake 1.11.1 (ManPage)
automake-1.11.1 - Generate Makefile.in for configure from Makefile.am. Operation modes: --help print this help, then exit --version print version number, then e
manpages/keytool-java-1.6.0-openjdk.1.html
keytool-java-1.6.0-openjdk(1) - Key and Certificate Manageme
keytool-java-1.6.0-openjdk.1 - keytool is a key and certificate management utility. It allows users to administer their own public/private key pairs and associa
manpages/apm.4.html
apm(4) - Alliance ProMotion video driver - Linux man page...
apm is an Xorg driver for Alliance ProMotion video cards. The driver is accelerated for supported hardware/depth combination. It supports framebuffer depths of
manpages/DefaultColormap.3.html
DefaultColormap(3) - Display macros and functions (ManPage)
The AllPlanes macro returns a value with all bits set to 1 suitable for use in a plane argument to a procedure. The BlackPixel macro returns the black pixel val
manpages/curl_easy_escape.3.html
curl_easy_escape(3) - URL encodes the given string (ManPage)
This function converts the given input string to an URL encoded string and returns that as a new allocated string. All input characters that are not a-z, A-Z, 0
manpages/Xutf8TextExtents.3.html
Xutf8TextExtents(3) - compute text extents - Linux man page
The XmbTextExtents, XwcTextExtents and Xutf8TextExtents functions set the components of the specified overall_ink_return and overall_logical_return arguments to
