PEXGDP2D - 2D Generalized Drawing Primitive (5.0)


Note: This function has been superseded by the PEXOCCGDP function, but is maintained here for backwards compatibility with PEXlib 5.1

Synopsis

 
    void PEXGDP2D(
         Display *display,
         XID resource_id,
         PEXOCRequestType req_type,
         long gdp_id,
         unsigned int count,
         PEXCoord2D *points,
         unsigned long length,
         char *data
      )

Arguments

display
A pointer to a display structure returned by a successful XOpenDisplay call.

resource_id
The resource identifier of the renderer or structure.

req_type
The request type for the output command (PEXOCRender, PEXOCStore, PEXOCRenderSingle or PEXOCStoreSingle).

gdp_id
The identifier of the GDP.

count
The number of vertices.

points
The vertices used by the GDP.

length
The length, in bytes, of the data.

data
Additional data used by the GDP.

Returns

None.

Description

Invoke PEXGDP2D to create a two-dimensional generalized drawing primitive.

Individual PEX implementations should provide you with a complete interface and description for each GDP identifier. PEXlib does not define any standard PEX GDPs. If your implementation does not support the specified GDP identifier, then it ignores this function.

Errors

BadPEXOutputCommand
The output command contains an invalid value.

BadPEXRenderer
The specified renderer resource identifier is invalid.

BadPEXStructure
The specified structure resource identifier is invalid.

See Also

For an overview, see Output Command Functions.