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

swaptmesh Subroutine

Purpose

Toggles the triangle mesh register pointer.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void swaptmesh( )

FORTRAN Syntax

SUBROUTINE SWAPTM

Description

The swaptmesh subroutine toggles the triangle mesh register pointer.

The triangle mesh hardware stores two vertices. After each new vertex is specified (and a triangle comprising the new vertex and the two stored vertices is drawn), one of the stored vertices is replaced by the new vertex. The value of a two-value pointer determines which vertex is replaced. This pointer is toggled after each vertex, replacing the alternate stored vertices. The swaptmesh subroutine toggles the pointer without specification of a new vertex (and no triangle is drawn).

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

Drawing triangle mesh vertices with the bgntmesh subroutine.

Ending a series of triangle mesh vertices with the endtmesh subroutine.

Transferring a vertex to the graphics pipe with the v subroutine.

AIX Graphics Library Overview, Drawing with Begin-End Style Subroutines, and Understanding the Hardware Used by GL in GL3.2 Version 4 for AIX: Programming Concepts.


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