PEXSetParaSurfCharacteristics(3) — Subroutines
Name
PEXSetParaSurfCharacteristics - Set Parametric Surface Characteristics
Synopsis
void PEXSetParaSurfCharacteristics(Display ∗display, XID resource_id, PEXOCRequestType req_type, int psc_type, PEXPSCData ∗characteristics)
Arguments
displayA pointer to a display structure returned by a successful XOpenDisplay call.
resource_idThe resource identifier of the renderer or structure.
req_typeThe request type for the output command (PEXOCRender, PEXOCStore, PEXOCRenderSingle or PEXOCStoreSingle).
psc_typeThe parametric surface characteristic type (PEXPSCNone, PEXPSCImpDep, PEXPSCIsoCurves, PEXPSCMCLevelCurves, PEXPSCWCLevelCurves).
characteristics
A pointer to data defining the parametric surface characteristics.
Returns
None
Description
This function creates an output primitive attribute which sets the parametric surface characteristics. If the specified parametric surface characteristics type is not supported, PEXPSCNone is used. Supported values for parameteric surface characteristic types are inquirable via PEXGetEnumTypeInfo.
Data Structures
typedef union {
PEXPSCIsoparametricCurves iso_curves;
PEXPSCLevelCurves level_curves;
PEXPSCImpDepData imp_dep;
} PEXPSCData;
typedef struct {
unsigned short placement_type;
unsigned short reserved;
unsigned short u_count;
unsigned short v_count;
} PEXPSCIsoparametricCurves;
typedef struct {
PEXCoord origin;
PEXVector direction;
unsigned short count;
unsigned short reserved;
float ∗parameters;
} PEXPSCLevelCurves;
typedef struct {
unsigned short length;
char ∗data;
} PEXPSCImpDepData;
See also the PEXStructuresman page.
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.