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

setlinestyle Subroutine


Selects a linestyle.


Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void setlinestyle(Int32 index)


INTEGER*4 index


The setlinestyle subroutine selects a linestyle. The linestyle, a line attribute, is used whenever a line-drawing primitive is invoked. These include lines, curves, rectangles, polygons, circles, and arcs.

The default linestyle is 0 (zero), which is a solid line. It cannot be redefined.

Note: The operation of this subroutine for the Supergraphics Processor Subsystem is modified. (See "Hardware Considerations".)


index Specifies an index into the table of linestyles built by the deflinestyle subroutine


The example C language program colored.c uses the setlinestyle subroutine to use a linestyle previously defined by the deflinestyle subroutine.

Implementation Specifics

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


/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 linestyle with the getlstyle subroutine.

Specifying the linewidth with the linewidth subroutine.

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

[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]