[ Previous | Next | Contents | Glossary | Home | Search ]
The graPHIGS Programming Interface : Subroutine Reference

GPBDMI - Set Back Data Mapping Index

GPBDMI (index)

Purpose

Use GPBDMI to insert a Set Back Data Mapping Index structure element into the open structure following the element pointer, or to replace the element pointed at by the element pointer with a Set Back Data Mapping Index structure element, depending upon the edit mode.

During traversal, the back data mapping index specifies the entry in the data mapping table used to perform data mapping on subsequent primitives that support data mapping.

If the face distinguish mode (GPFDMO) is 1=NONE , then the graPHIGS API uses the current data mapping index for data mapping on the front and back facing portions of area primitives. If the face distinguish mode is 2=COLOR_SURFACE_PROPERTIES , then the graPHIGS API uses the specified back data mapping index for data mapping on only back facing portions of area primitives.

The data mapping table is zero based. Entry zero always contains a data mapping entry of 1=DM_METHOD_COLOR Use GPQWDT to determine the number of definable data mapping table entries.

The traversal default back data mapping index is zero. If the specified index is not supported on the workstation, then the graPHIGS API uses a default index of zero.

Parameters

index -- specified by user, fullword integer

Data mapping table index (>=0).

Error Codes

5
FUNCTION REQUIRES STATE STOP OR NROP (NOT STCL)
630
DATA MAPPING INDEX < ZERO

Related Subroutines

GPDMI
Set Data Mapping Index
GPDMR
Set Data Mapping Representation
GPQWDT
Inquire Workstation Description

RCP code

201343514 (X'0C00421A')


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