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

GPHLCD - Set Highlighting Color Direct

GPHLCD (color)

Purpose

Use GPHLCD to insert a Set Highlighting Color Direct structure element into the open structure following the element pointer or to replace the element pointed at by the element pointer with a Set Highlighting Color Direct structure element depending on the current edit mode.

This structure element specifies the direct color values the graPHIGS API uses to render all subsequent highlighted primitives. This color overrides any color specified by the attribute color for the primitive or specified in the primitive definition.

This attribute sets the same traversal state as the Set Highlighting Color Index (GPHLCI) subroutine. The traversal default for highlighting color is the content of entry 1 of the rendering color table.

Parameters

color -- specified by user, 3 short floating-point numbers

Three color components of the current direct color model in the graPHIGS API state list (0.0<=component<=1.0)

Error Codes

5
FUNCTION REQUIRES STATE STOP OR NROP (NOT STCL)
96
COLOR PARAMETER OUT OF RANGE FOR CURRENT COLOR MODEL

Related Subroutines

GPHLCI
Set Highlighting Color Index

RCP code

201328669 (X'0C00081D')


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