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

GPECD - Set Edge Color Direct

GPECD (color)

Purpose

Use GPECD to insert a Set Edge 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 Edge Color Direct structure element depending on the current edit mode.

This structure element specifies the direct color values that the graPHIGS API uses to render the edges of subsequent output primitives to which this attribute applies. The graPHIGS API uses these values at structure traversal time to render the edges of output primitives when the edge color attribute source flag is set to 2=INDIVIDUAL and the edge flag is set to 2=ON

This attribute sets the same traversal state as the Set Edge Color Index ( GPECI) subroutine. The traversal default for edge 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

GPASF
Attribute Source Flag Setting
GPECI
Set Edge Color Index
GPQXER
Inquire Extended Edge Representation
GPXER
Set Extended Edge Representation

RCP code

201328904 (X'0C000908')


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