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

setlinestyle Subroutine

Purpose

Selects a linestyle.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void setlinestyle(Int32 index)

FORTRAN Syntax

SUBROUTINE SETLIN(index)
INTEGER*4 index

Description

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".)

Parameter

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

Example

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.

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 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.


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