[ Previous | Next | Contents | Glossary | Home | Search ]
GL3.2 for AIX: Graphics Library (GL) Technical Reference

linewidth Subroutine

Purpose

Specifies the linewidth.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void linewidth(Int16 number)

FORTRAN Syntax

SUBROUTINE LINEWI(number)
INTEGER*4 number
Note: For FORTRAN users, this subroutine accepts long integer parameters (INTEGER*4) when invoked from a FORTRAN program, although it accepts short integers when invoked from a C program. The C and FORTRAN syntax shown here reflect this difference.

Description

The linewidth subroutine specifies the width of a line. The default width is one pixel. Wide lines are centered as nearly as possible on the infinitely thin mathematical line.

Note: This subroutine cannot be used to add to a display list.

Parameter

number Width of the line in pixels.

Example

The example C language program prompt.c uses the linewidth subroutine to draw a two-pixel thick border around a prompt string.

Implementation Specifics

This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.

The POWERgraphics GXT1000 supports line widths from 1 to 255.

Files

/usr/include/gl/gl.h Contains C language constant and variable type definitions for GL.
/usr/include/gl/fgl.h Contains FORTRAN constant and variable type definitions for GL.

Related Information

Defining a linestyle with the deflinestyle subroutine.

Returning the current linewidth with the getlwidth subroutine.

Selecting a linestyle with the setlinestyle subroutine.

AIX Graphics Library Overview, Drawing with Begin-End Style Subroutines, Drawing with Move-Draw Style Subroutines, Drawing NURBS Curves and Surfaces, Drawing Wire Frame Curves and Surface Patches, Setting Drawing Attributes, Understanding the Hardware Used by GL, and Drawing Rectangles, Circles, Arcs, and Polygons.


[ Previous | Next | Contents | Glossary | Home | Search ]