 | glLineWidth Method |
Specify the width of rasterized lines.
Namespace:
Ooogles
Assembly:
Ooogles (in Ooogles.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static void LineWidth(
float width
)
Public Shared Sub LineWidth (
width As Single
)
public:
static void LineWidth(
float width
)
static member LineWidth :
width : float32 -> unit
Parameters
- width
- Type: SystemSingle
the width of rasterized lines. The initial value is 1.
ExceptionsException | Condition |
---|
GLException | InvalidValue 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