glLineWidth — specify the width of rasterized lines
Specifies the width of rasterized lines. The initial value is 1.
glLineWidth specifies the rasterized width of
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.)
i pixels are filled in each column that is rasterized,
where i is the rounded value of
i pixels are filled in each row that is rasterized.
There is a range of supported line widths. Only width 1 is guaranteed to be supported; others depend on the
To query the range of supported widths, call glGet
The line width specified by
glLineWidth is always returned when
Clamping and rounding have no effect on the specified value.
Line width may be clamped to an implementation-dependent maximum. Call glGet with
GL_ALIASED_LINE_WIDTH_RANGE to determine the maximum width.
GL_INVALID_VALUE is generated if
width is less than or equal to 0.
|OpenGL ES API Version|
Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2010-2014 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see https://web.archive.org/web/20171022161616/http://oss.sgi.com/projects/FreeB/.