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

setpattern Subroutine

Purpose

Selects a pattern for filling polygons and rectangles.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void setpattern(Int32 index)

FORTRAN Syntax

SUBROUTINE SETPAT(index)
INTEGER*4 index

Description

The setpattern subroutine selects a pattern from a table of patterns previously defined by the defpattern subroutine. The pattern, an area-fill attribute, is used whenever an area-fill primitive is invoked. These primitives include filled polygons, rectangles, circles, and arcs.

The default pattern is 0 (zero), which is solid. If you specify an undefined pattern, the default pattern is selected.

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

Parameter

index Specifies the index into the table of defined patterns.

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

Setting the current color index in color map mode with the color subroutine.

Defining a pattern with the defpattern subroutine.

Returning the index of the current fill pattern with the getpattern subroutine.

Granting write permission to a subset of available bitplanes in color map mode with the writemask 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 ]