Click or drag to resize

glLineWidth Method

Specify the width of rasterized lines.

Namespace:  Ooogles
Assembly:  Ooogles (in Ooogles.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void LineWidth(
	float width
)

Parameters

width
Type: SystemSingle
the width of rasterized lines. The initial value is 1.
Exceptions
ExceptionCondition
GLExceptionInvalidValue if width is less than or equal to 0.
Remarks
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.)

There is a range of supported line widths. Only width 1 is guaranteed to be supported; others depend on the implementation. To query the range of supported widths, call GetAliasedLineWidthRange(Single, Single).

Note: the line width specified by LineWidth is always returned when GetLineWidth is queried. Clamping and rounding have no effect on the specified value.

OpenGL API: glLineWidth

See Also