HPUX man pages für Kapitel 3g



PEXAccumulateState - Accumulate Rendering Pipeline State Syntax void PEXAccumulateState(Display *display, PEXRenderer renderer, unsigned long count, PEXElementRef *elements) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. renderer The resource identifier of a renderer resource. count The number of elements. elements A pointer to the structure element reference path. Returns None

PEXAddToNameSet - Add Names to Name Set Syntax void PEXAddToNameSet(Display *display, XID resource_id, PEXOCRequestType req_type, unsigned long count, PEXName *names) Parameters 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). count The number of names. names An array of names to be added to the current name set. Returns None

PEXAnnotationText - 3D Annotation Text Primitive Syntax void PEXAnnotationText(Display *display, XID resource_id, PEXOCRequestType req_type, PEXCoord *origin, PEXCoord *offset, int length, char *string) Parameters 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). origin The origin of the text string. offset The relative position of the text string from the origin. length The number of bytes in the text string. string A pointer to the text string. Returns None

PEXAnnotationText2D - 2D Annotation Text Primitive Syntax void PEXAnnotationText2D(Display *display, XID resource_id, PEXOCRequestType req_type, PEXCoord2D *origin, PEXCoord2D *offset, int length, char *string) Parameters 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). origin The origin of the text string. offset The relative position of the text string from the origin. length The number of bytes in the text string. string A pointer to the text string. Returns None

PEXApplicationData - Structure Application Data Syntax void PEXApplicationData(Display *display, XID resource_id, PEXOCRequestType req_type, int length, char *data) Parameters 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). length The length, in bytes, of the application data. data A pointer to the application data. Returns None

PEXBeginPickAll - Begin Renderer Pick All Syntax void PEXBeginPickAll(Display *display, Drawable drawable, PEXRenderer renderer, long structure_id, int method, int send_event, int max_hits, int pick_device_type, PEXPickRecord *pick_record) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. drawable The resource identifier of a drawable. renderer The resource identifier of the renderer. structure_id A value to be used as the structure identifier for the root of the structure network. method The pick all method (PEXPickAllAll or PEXPickAllVisible). send_event True or False - specifying whether the server should send an event when the maximum number of hits is reached. max_hits The maximum number of hits to be returned. pick_device_type The pick device type (PEXPickDeviceDCHitBox or PEXPickDeviceNP- CHitVolume). pick_record A pointer to the pick data record. Returns None

PEXBeginPickOne - Begin Renderer Pick One Syntax void PEXBeginPickOne(Display *display, Drawable drawable, PEXRenderer renderer, long structure_id, int method, int pick_device_type, PEXPickRecord *pick_record) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. drawable The resource identifier of a drawable. renderer The resource identifier of the renderer. structure_id A value to be used as the structure identifier for the root of the structure network. method The pick one method (PEXPickLast, PEXPickClosestZ, PEXPickVisi- bleAny, PEXPickVisibleClosest). pick_device_type The pick device type (PEXPickDeviceDCHitBox or PEXPickDeviceNP- CHitVolume). pick_record A pointer to the pick data record. Returns None

PEXBeginRendering - Begin Rendering Syntax void PEXBeginRendering(Display *display, Drawable drawable, PEXRenderer renderer) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. drawable The resource identifier of a drawable. renderer The resource identifier of a renderer. Returns None

PEXBeginStructure - Save Rendering Pipeline State Syntax void PEXBeginStructure(Display *display, PEXRenderer renderer, long structure_id) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. renderer The resource identifier of a renderer. structure_id A value to be used as an application-specified structure identifier. Returns None

PEXBuildTransform.3g

PEXBuildTransform2D.3g

PEXCellArray - 3D Cell Array Primitive Syntax void PEXCellArray(Display *display, XID resource_id, PEXOCRequestType req_type, PEXCoord *point1, PEXCoord *point2, PEXCoord *point3, unsigned int col_count, unsigned int row_count, PEXTableIndex *color_indices) Parameters 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). point1 The first cell array definition point. point2 The second cell array definition point. point3 The third cell array definition point. col_count The number of cell columns (number of cells in the X direction). row_count The number of cell rows (number of cells in the Y direction). color_indices An array of color table index values which specify the color of each cell. Returns None

PEXCellArray2D - 2D Cell Array Primitive Syntax void PEXCellArray2D(Display *display, XID resource_id, PEXOCRequestType req_type, PEXCoord2D *point1, PEXCoord2D *point2, unsigned int col_count, unsigned int row_count, PEXTableIndex *color_indices) Parameters 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). point1 The first cell array definition point. point2 The second cell array definition point. col_count The number of cell columns (number of cells in the X direction). row_count The number of cell rows (number of cells in the Y direction). color_indices An array of color table index values which specify the color of each cell. Returns None

PEXChangeNameSet - Change Name Set Syntax void PEXChangeNameSet(Display *display, PEXNameSet nameset, int action, unsigned long count, PEXName *names) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. nameset The resource identifier of the name set. action Type of change to be made (PEXNSAdd, PEXNSRemove, PEXNSReplace). count The number of names. names An array of names. Returns None

PEXChangePickDevice - Change Pick Device Attributes Syntax void PEXChangePickDevice(Display *display, PEXWorkstation workstation, int pick_device_type, unsigned long value_mask, PEXPDAttributes *values) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. workstation The resource identifier of the workstation. pick_device_type The pick device type (PEXPickDeviceDCHitBox or PEXPickDeviceNP- CHitVolume). value_mask A mask indicating which attributes to return. values A pointer to the pick device attribute values. Returns None

PEXChangePipelineContext - Change Pipeline Context Syntax void PEXChangePipelineContext(Display *display, PEXPipelineContext context, unsigned long *value_mask, PEXPCAttributes *values) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. context The resource identifier of the pipeline context. value_mask A pointer to an array of three unsigned long. values A pointer to new values for attributes in the pipeline context. Returns None

PEXChangeRenderer - Change Renderer Attributes Syntax void PEXChangeRenderer(Display *display, PEXRenderer renderer, unsigned long value_mask, PEXRendererAttributes *values) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. renderer The resource identifier of the renderer. value_mask A mask indicating the renderer attributes to be changed. values A pointer to new values for the renderer attributes. Returns None

PEXChangeSearchContext - Change Search Context Syntax void PEXChangeSearchContext(Display *display, PEXSearchContext context, unsigned long value_mask, PEXSCAttributes *values) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. context The resource identifier of the search context. value_mask A mask indicating the search context attributes to be changed. values A pointer to new values for the specified search context attributes. Returns None

PEXChangeStructureRefs - Change Structure References Syntax void PEXChangeStructureRefs(Display *display, PEXStructure old_structure, PEXStructure new_structure) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. old_structure The resource identifier of the structure no longer to be referenced. new_structure The resource identifier of the structure now referenced. Returns None

PEXCopyBytesToOC - Copy Encoded Output Commands Syntax void PEXCopyBytesToOC(Display *display, int length, char *data) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. length The number of bytes to copy. data A pointer to the output command data. Returns None

PEXCopyElements - Copy Elements Syntax void PEXCopyElements(Display *display, PEXStructure src_structure, int src_whence1, long src_offset1, int src_whence2, long src_offset2, PEXStructure dst_structure, int dst_whence, long dst_offset) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. src_structure The resource identifier of the source structure. src_whence1 A value specifying, with src_offset1, the first limit of the range of elements to be copied (PEXBeginning, PEXCurrent, PEX- End). src_offset1 The offset from src_whence1 denoting the first limit of the range of elements to be copied. src_whence2 A value specifying, with src_offset2, the second limit of the range of elements to be copied (PEXBeginning, PEXCurrent, PEX- End). src_offset2 The offset from src_whence2 denoting the second limit of the range of elements to be copied. dst_structure The resource identifier of the destination structure. dst_whence A value specifying, with dst_offset, the position at which the elements are inserted into the destination structure (PEXBegin- ning, PEXCurrent, PEXEnd). dst_offset The offset from dst_whence denoting the position at which the elements are inserted into the destination structure. Returns None

PEXCopyLookupTable - Copy Lookup Table Syntax void PEXCopyLookupTable(Display *display, PEXLookupTable src_table, PEXLookupTable dst_table) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. src_table The resource identifier of the source lookup table. dst_table The resource identifier of the destination lookup table. Returns None

PEXCopyNameSet - Copy Name Set Syntax void PEXCopyNameSet(Display *display, PEXNameSet src_nameset, PEXNameSet dst_nameset) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. src_nameset The resource identifier of the source name set. dst_nameset The resource identifier of the destination name set. Returns None

PEXCopyPipelineContext - Copy Pipeline Context Syntax void PEXCopyPipelineContext(Display *display, unsigned long *value_mask, PEXPipelineContext src_context, PEXPipelineContext dst_context) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. value_mask A pointer to an array of three unsigned long. src_context The resource identifier of the source pipeline. dst_context The resource identifier of the destination pipeline context. Returns None

PEXCopySearchContext - Copy Search Context Syntax void PEXCopySearchContext(Display *display, unsigned long value_mask, PEXSearchContext src_context, PEXSearchContext dst_context) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. value_mask A mask specifying which attributes are to be copied. src_context The resource identifier of the source search context. dst_context The resource identifier of the destination search context. Returns None

PEXCopyStructure - Copy Structure Syntax void PEXCopyStructure(Display *display, PEXStructure src_structure, PEXStructure dst_structure) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. src_structure The resource identifier of the source structure. dst_structure The resource identifier of the destination structure. Returns None

PEXCountOCs - Count Output Commands in an Encoded List Syntax unsigned long PEXCountOCs(int float_format, unsigned long length, char *encoded_ocs) Parameters float_format The floating point format of the encoded output commands (PEX- IEEE_754_32, PEXDEC_F_Floating, PEXIEEE_754_64, PEXDEC_D_Floating). length The length, in bytes, of the encoded output commands. encoded_ocs A pointer to the encoded output commands. Returns The number of output commands represented in the encoded output com- mands.

PEXCreateLookupTable - Create Lookup Table Syntax PEXLookupTable PEXCreateLookupTable(Display *display, Drawable drawable, int table_type) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. drawable The resource identifier of a drawable. table_type The type of lookup table to be created (see the Description). Returns The resource identifier of the newly-created lookup table.

PEXCreateNameSet - Create Name Set Syntax PEXNameSet PEXCreateNameSet(Display *display) Argument display A pointer to a display structure returned by a successful XOpenDisplay call. Returns The resource identifier of the newly-created name set.

PEXCreatePickMeasure - Create Pick Measure Syntax PEXPickMeasure PEXCreatePickMeasure(Display *display, PEXWorkstation workstation, int pick_device_type) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. workstation The resource identifier of the workstation. pick_device_type The pick device type (PEXPickDeviceDCHitBox or PEXPickDeviceNP- CHitVolume). Returns The resource identifier of the newly-created pick measure.

PEXCreatePipelineContext - Create Pipeline Context Syntax PEXPipelineContext PEXCreatePipelineContext(Display *display, unsigned long *value_mask, PEXPCAttributes *values) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. value_mask A pointer to an array of three unsigned long. values A pointer to values to override default attribute values in the new pipeline context. Returns The resource identifier of the newly-created pipeline context.

PEXCreateRenderer - Create Renderer Syntax PEXRenderer PEXCreateRenderer(Display *display, Drawable drawable, unsigned long value_mask, PEXRendererAttributes *values) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. drawable The resource identifier of a drawable. value_mask A mask indicating the attribute values specified. values A pointer to values used to override default values in the new renderer resource. Returns The resource identifier of the newly-created renderer resource.

PEXCreateSearchContext - Create Search Context Syntax PEXSearchContext PEXCreateSearchContext(Display *display, unsigned long value_mask, PEXSCAttributes *values) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. value_mask A mask indicating the attributes specified. values A pointer to values used to override default values in the new search context resource. Returns The resource identifier of the newly-created search context resource.

PEXCreateStructure - Create Structure Syntax PEXStructure PEXCreateStructure(Display *display) Argument display A pointer to a display structure returned by a successful XOpenDisplay call. Returns The resource identifier of the newly-created structure resource.

PEXCreateWorkstation - Create Workstation Syntax PEXWorkstation PEXCreateWorkstation(Display *display, Drawable drawable, PEXLookupTable line_bundle, PEXLookupTable marker_bundle, PEXLookupTable text_bundle, PEXLookupTable interior_bundle, PEXLookupTable edge_bundle, PEXLookupTable color_table, PEXLookupTable pattern_table, PEXLookupTable font_table, PEXLookupTable depth_cue_table, PEXLookupTable light_table, PEXLookupTable color_approx_table, PEXNameSet highlight_incl, PEXNameSet highlight_excl, PEXNameSet invisibility_incl, PEXNameSet invisibility_excl, int buffer_mode) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. drawable The resource identifier of a drawable. line_bundle The resource identifier of the line bundle lookup table. marker_bundle The resource identifier of the marker bundle lookup table. text_bundle The resource identifier of the text bundle lookup table. interior_bundle The resource identifier of the interior bundle lookup table. edge_bundle The resource identifier of the edge bundle lookup table. color_table The resource identifier of the color lookup table. pattern_table The resource identifier of the pattern lookup table. font_table The resource identifier of the text font lookup table. depth_cue_table The resource identifier of the depth cue lookup table. light_table The resource identifier of the light lookup table. (c) O'Reilly & Associates, Inc. - 1 - PEX Early Release November 1992 PEXCreateWorkstation(3G) PEXCreateWorkstation(3G) Unsupported on HP-PEX 5.1 color_approx_table The resource identifier of the color approximation lookup table. highlight_incl The name set used as the highlight inclusion set. highlight_excl The name set used as the highlight exclusion set. invisibility_incl The name set used as the invisibility inclusion set. invisibility_excl The name set used as the invisibility exclusion set. buffer_mode The workstation buffering mode (PEXSingleBuffer or PEXDoub- leBuffer). Returns The resource identifier of the newly-created workstation.

PEXDecodeOCs - Decode Output Commands Syntax PEXOCData *PEXDecodeOCs(int float_format, unsigned long oc_count, unsigned long length, char *encoded_ocs) Parameters float_format The floating point format of the encoded output commands (PEX- IEEE_754_32, PEXDEC_F_Floating, PEXIEEE_754_64, PEXDEC_D_Floating). oc_count The number of output commands represented in the encoded output commands. length The length, in bytes, of the encoded output commands. encoded_ocs A pointer to the encoded output commands. Returns A pointer to the decoded output commands; a null pointer if unsuccess- ful or if zero output commands specified.

PEXDeleteBetweenLabels - Delete Elements Between Labels Syntax void PEXDeleteBetweenLabels(Display *display, PEXStructure structure, long label1, long label2) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. structure The resource identifier of the structure. label1 The first label. label2 The second label. Returns None

PEXDeleteElements - Delete Elements Syntax void PEXDeleteElements(Display *display, PEXStructure structure, int whence1, long offset1, int whence2, long offset2) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. structure The resource identifier of the structure. whence1 A value specifying, with offset1, the first limit of the range of elements to be deleted (PEXBeginning, PEXCurrent, PEXEnd). offset1 The offset from whence1 denoting the first limit of the range of elements to be deleted. whence2 A value specifying, with offset2, the second limit of the range of elements to be deleted (PEXBeginning, PEXCurrent, PEXEnd). offset2 The offset from whence2 denoting the second limit of the range of elements to be deleted. Returns None

PEXDeleteTableEntries - Delete Lookup Table Entries Syntax void PEXDeleteTableEntries(Display *display, PEXLookupTable table, unsigned int start, unsigned int count) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. table The resource identifier of the lookup table. start The initial table entry to be deleted. count The number of entries to be deleted. Returns None

PEXDeleteToLabel - Delete Elements to Label Syntax void PEXDeleteToLabel(Display *display, PEXStructure structure, int whence, long offset, long label) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. structure The resource identifier of the structure. whence A value specifying, with offset, the beginning of the range of elements to be deleted (PEXBeginning, PEXCurrent, PEXEnd). offset The offset from whence denoting the beginning of the range of elements to be deleted. label The label specifying the end of the range of elements to be deleted. Returns None

PEXDestroyStructures - Destroy Structures Syntax void PEXDestroyStructures(Display *display, unsigned long count, PEXStructure *structures) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. count The number of structure resource identifiers. structures An array of resource identifiers of the structures to be destroyed. Returns None

PEXElementSearch - Element Search Syntax Status PEXElementSearch(Display *display, PEXStructure structure, int whence, long offset, int direction, unsigned long incl_count, unsigned short *incl_list, unsigned long excl_count, unsigned short *excl_list, unsigned long *elem_offset_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. structure The resource identifier of the structure. whence A value specifying, with offset, the offset at which the search is to begin (PEXBeginning, PEXCurrent, PEXEnd). offset The offset from whence at which the search is to begin. direction The direction of the search (PEXForward or PEXBackward). incl_count The number of values in inclusion array. incl_list An array of short integers specifying structure elements to be searched for. excl_count The number of values in exclusion array. excl_list An array of short integers specifying structure elements not to be searched for. elem_offset_return Returns the offset of the element located by the search. Returns Zero if unsuccessful, non-zero otherwise. The non-zero value will be either PEXFound or PEXNotFound depending upon the result of the search.

PEXEncodeOCs - Encode Output Commands Syntax char *PEXEncodeOCs(int float_format, unsigned long oc_count, PEXOCData *oc_data, unsigned long *length_return) Parameters float_format The floating point format for the encoded output commands (PEX- IEEE_754_32, PEXDEC_F_Floating, PEXIEEE_754_64, PEXDEC_D_Floating). oc_count The number of output commands to be encoded. oc_data An array of the output command data. length_return Returns the length, in bytes, of the encoded output commands. Returns A pointer to the encoded output commands; a null pointer if unsuccess- ful or if zero output commands specified.

PEXEncodedAnnoText - Encoded 3D Annotation Text Primitive Syntax void PEXEncodedAnnoText(Display *display, XID resource_id, PEXOCRequestType req_type, PEXCoord *origin, PEXCoord *offset, unsigned int count, PEXEncodedTextData *encoded_text) Parameters 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). origin The origin of the text string. offset The relative position of the text string from the origin. count The number of encoded text strings. encoded_text An array of encoded text strings. Returns None

PEXEncodedAnnoText2D - Encoded 2D Annotation Text Primitive Syntax void PEXEncodedAnnoText2D(Display *display, XID resource_id, PEXOCRequestType req_type, PEXCoord2D *origin, PEXCoord2D *offset, unsigned int count, PEXEncodedTextData *encoded_text) Parameters 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). origin The origin of the text string. offset The relative position of the text string from the origin. count The number of encoded text strings. encoded_text An array of encoded text strings. Returns None

PEXEncodedText - Encoded 3D Text Primitive Syntax void PEXEncodedText(Display *display, XID resource_id, PEXOCRequestType req_type, PEXCoord *origin, PEXVector *vector1, PEXVector *vector2, unsigned int count, PEXEncodedTextData *encoded_text) Parameters 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). origin The origin of the text string. vector1 A vector defining the positive x-direction of the text local coordinate system. vector2 A vector defining the positive y-direction of the text local coordinate system. count The number of encoded text strings. encoded_text An array of encoded text strings. Returns None

PEXEncodedText2D - Encoded 2D Text Primitive Syntax void PEXEncodedText2D(Display *display, XID resource_id, PEXOCRequestType req_type, PEXCoord2D *origin, unsigned int count, PEXEncodedTextData *encoded_text) Parameters 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). origin The origin of the text string. count The number of encoded text strings. encoded_text An array of encoded text strings. Returns None

PEXEndPickAll - End Pick All Syntax PEXPickPath *PEXEndPickAll(Display *display, PEXRenderer renderer, int *status_return, int *more_return, unsigned long *count_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. renderer The resource identifier of the renderer. status_return Returns the status of the pick operation. more_return Returns the status of remaining picks. count_return Returns the number of pick paths. Returns An array of pick paths; a null pointer if unsuccessful or no pick (see also status_return).

PEXEndPickOne - End Pick One Syntax PEXPickPath *PEXEndPickOne(Display *display, PEXRenderer renderer, int *status_return, int *undetectable_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. renderer The resource identifier of the renderer. status_return Returns the status of the pick operation. undetectable_return Returns True or False indicating whether another pick better satisfied the pick criteria with the exception that it did not pass the pick filter test. Returns A pointer to the pick path; a null pointer if unsuccessful or no pick (see also status_return).

PEXEndRendering - End Rendering Syntax void PEXEndRendering(Display *display, PEXRenderer renderer, int flush) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. renderer The resource identifier of a renderer. flush True or False - specifying whether any pending output for renderer is to be rendered onto its associated drawable. Returns None

PEXEndStructure - Restore Rendering Pipeline State Syntax void PEXEndStructure(Display *display, PEXRenderer renderer) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. renderer The resource identifier of the renderer. Returns None

PEXEscape - PEX Escape Syntax void PEXEscape(Display *display, unsigned long escape_id, int length, char *escape_data) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. escape_id The escape identifier. length The length, in bytes, of data for the escape request. escape_data A pointer to data for the escape request. Returns None

PEXEscapeWithReply - PEX Escape With Reply Syntax char *PEXEscapeWithReply(Display *display, unsigned long escape_id, int length, char *escape_data, unsigned long *reply_length_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. escape_id The escape identifier. length The length, in bytes, of data for the escape request. escape_data A pointer to data for the escape request. reply_length_return Returns the length, in bytes, of the reply data. Returns A pointer to the escape reply data; a null pointer if unsuccessful.

PEXExecuteDeferredActions - Execute Deferred Workstation Actions Syntax void PEXExecuteDeferredActions(Display *display, PEXWorkstation workstation) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. workstation The resource identifier of the workstation. Returns None

PEXExecuteStructure - Execute Structure Syntax void PEXExecuteStructure(Display *display, XID resource_id, PEXOCRequestType req_type, PEXStructure structure) Parameters 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). structure The resource identifier of the structure. Returns None

PEXExtChangePipelineContext.3g

PEXExtChangeRenderer.3g

PEXExtCircle2D.3g

PEXExtCircularArc2D.3g

PEXExtCountOCs.3g

PEXExtCreateFilteredTM.3g

PEXExtCreateFilteredTMFromWindow.3g

PEXExtCreateTM.3g

PEXExtCreateTMDescription.3g

PEXExtDecodeOCs.3g

PEXExtEllipse.3g

PEXExtEllipse2D.3g

PEXExtEllipticalArc.3g

PEXExtEllipticalArc2D.3g

PEXExtEncodeOCs.3g

PEXExtFetchElements.3g

PEXExtFetchElementsAndSend.3g

PEXExtFillAreaSetWithData.3g

PEXExtFreeFilteredTM.3g

PEXExtFreeOCData.3g

PEXExtFreePCAttributes.3g

PEXExtFreeRendererAttributes.3g

PEXExtFreeTM.3g

PEXExtFreeTMDescription.3g

PEXExtFreeTableEntries.3g

PEXExtGetPipelineContext.3g

PEXExtGetRendererAttributes.3g

PEXExtGetSizeOCs.3g

PEXExtGetTableEntries.3g

PEXExtGetTableEntry.3g

PEXExtQuadrilateralMesh.3g

PEXExtQueryColorApprox.3g

PEXExtSetActiveTextures.3g

PEXExtSetBFActiveTextures.3g

PEXExtSetLineCapStyle.3g

PEXExtSetLineJoinStyle.3g

PEXExtSetOfFillAreaSets.3g

PEXExtSetPCAttributeMask.3g

PEXExtSetPCAttributeMaskAll.3g

PEXExtSetPrimAA.3g

PEXExtSetRendererAttributeMask.3g

PEXExtSetRendererAttributeMaskAll.3g

PEXExtSetTMPerspectiveCorrection.3g

PEXExtSetTMResourceHints.3g

PEXExtSetTMSampleFrequency.3g

PEXExtSetTableEntries.3g

PEXExtTMCoordFillAreaSetWithData.3g

PEXExtTMCoordQuadrilateralMesh.3g

PEXExtTMCoordSetOfFillAreaSets.3g

PEXExtTMCoordTriangleStrip.3g

PEXExtTriangleStrip.3g

PEXExtendedCellArray - Extended 3D Cell Array Primitive Syntax void PEXExtendedCellArray(Display *display, XID resource_id, PEXOCRequestType req_type, PEXCoord *point1, PEXCoord *point2, PEXCoord *point3, unsigned int col_count, unsigned int row_count, int color_type, PEXArrayOfColor colors) Parameters 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). point1 The first cell array definition point. point2 The second cell array definition point. point3 The third cell array definition point. col_count The number of cell columns (number of cells in the X direction). row_count The number of cell rows (number of cells in the Y direction). color_type The type of color for the cell colors (PEXColorTypeIndexed, PEX- ColorTypeRGB, PEXColorTypeCIE, PEXColorTypeHSV, PEXColorTypeHLS, PEXColorTypeRGB8, PEXColorTypeRGB16). colors An array of colors specifying the color of each cell. Returns None

PEXFetchElements - Fetch Elements Syntax Status PEXFetchElements(Display *display, PEXStructure structure, int whence1, long offset1, int whence2, long offset2, int float_format, unsigned long *count_return, unsigned long *length_return, char **ocs_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. structure The resource identifier of the structure. whence1 A value specifying, with offset1, the first limit of the range of elements to be fetched (PEXBeginning, PEXCurrent, PEXEnd). offset1 The offset from whence1 denoting the first limit of the range of elements to be fetched. whence2 A value specifying, with offset2, the second limit of the range of elements to be fetched (PEXBeginning, PEXCurrent, PEXEnd). offset2 The offset from whence2 denoting the second limit of the range of elements to be fetched. float_format The floating point format to use when formatting the output com- mands to be fetched (PEXIEEE_754_32, PEXDEC_F_Floating, PEX- IEEE_754_64, PEXDEC_D_Floating). count_return Returns the number of output commands returned. length_return Returns the length, in bytes, of the output commands fetched. ocs_return Returns a pointer to protocol-formatted output commands (struc- ture elements). Returns Zero if unsuccessful, non-zero otherwise. (c) O'Reilly & Associates, Inc. - 1 - PEX Early Release November 1992 PEXFetchElements(3G) PEXFetchElements(3G)

PEXFetchElementsAndSend - Fetch Elements and Send to Display Syntax Status PEXFetchElementsAndSend(Display *src_display, PEXStructure structure, int whence1, long offset1, int whence2, long offset2, Display *dst_display, XID resource_id, PEXOCRequestType req_type) Parameters src_display A pointer to a display structure returned by a successful XOpenDisplay call. structure The resource identifier of the structure. whence1 A value specifying, with offset1, the first limit of the range of elements to be fetched (PEXBeginning, PEXCurrent, PEXEnd). offset1 The offset from whence1 denoting the first limit of the range of elements to be fetched. whence2 A value specifying, with offset2, the second limit of the range of elements to be fetched (PEXBeginning, PEXCurrent, PEXEnd). offset2 The offset from whence2 denoting the second limit of the range of elements to be fetched. dst_display A pointer to a display structure returned by a successful XOpen- Display call. resource_id The resource identifier of the renderer or structure. req_type The request type for the output commands (PEXOCRender, PEXOC- Store, PEXOCRenderSingle or PEXOCStoreSingle). Returns Zero if unsuccessful, non-zero otherwise.

PEXFillArea - 3D Fill Area Primitive Syntax void PEXFillArea(Display *display, XID resource_id, PEXOCRequestType req_type, int shape_hint, int ignore_edges, unsigned int count, PEXCoord *points) Parameters 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). shape_hint The shape of the fill area (PEXShapeComplex, PEXShapeNonConvex, PEXShapeConvex, PEXShapeUnknown). ignore_edges A flag that determines if surface edges are rendered (True or False). count The number of points. points An array of points defining the fill area. Returns None

PEXFillArea2D - 2D Fill Area Primitive Syntax void PEXFillArea2D(Display *display, XID resource_id, PEXOCRequestType req_type, int shape_hint, int ignore_edges, unsigned int count, PEXCoord2D *points) Parameters 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). shape_hint The shape of the fill area (PEXShapeComplex, PEXShapeNonConvex, PEXShapeConvex, PEXShapeUnknown). ignore_edges A flag that determines if surface edges are rendered (True or False). count The number of points. points An array of points defining the fill area. Returns None

PEXFillAreaSet - 3D Set of Fill Areas Primitive Syntax void PEXFillAreaSet(Display *display, XID resource_id, PEXOCRequestType req_type, int shape_hint, int ignore_edges, int contour_hint, unsigned int count, PEXListOfCoord *point_lists) Parameters 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). shape_hint The shape which describes all of the contours (PEXShapeComplex, PEXShapeNonConvex, PEXShapeConvex, PEXShapeUnknown). ignore_edges A flag that determines if surface edges are rendered (True or False). contour_hint A flag that indicates whether contours are disjoint or overlap- ping (PEXContourDisjoint, PEXContourNested, PEXContourIntersect- ing, PEXContourUnknown). count The number of fill areas in the set. point_lists A pointer to the list of point arrays defining each contour of the fill area set. Returns None

PEXFillAreaSet2D - 2D Set of Fill Areas Primitive Syntax void PEXFillAreaSet2D(Display *display, XID resource_id, PEXOCRequestType req_type, int shape_hint, int ignore_edges, int contour_hint, unsigned int count, PEXListOfCoord2D *point_lists) Parameters 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). shape_hint The shape which describes all of the contours (PEXShapeComplex, PEXShapeNonConvex, PEXShapeConvex, PEXShapeUnknown). ignore_edges A flag that determines if surface edges are rendered (True or False). contour_hint A flag that indicates whether contours are disjoint or overlap- ping (PEXContourDisjoint, PEXContourNested, PEXContourIntersect- ing, PEXContourUnknown). count The number of fill areas in the set. point_lists A pointer to the list of point arrays defining each contour of the fill area set. Returns None

PEXFillAreaSetWithData - 3D Set of Fill Areas Primitive With Additional Data Syntax void PEXFillAreaSetWithData(Display *display, XID resource_id, PEXOCRequestType req_type, int shape_hint, int ignore_edges, int contour_hint, unsigned int facet_attributes, unsigned int vertex_attributes, int color_type, unsigned int count, PEXFacetData *facet_data, PEXListOfVertex *vertex_lists) Parameters 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). shape_hint The shape which describes all of the contours (PEXShapeComplex, PEXShapeNonConvex, PEXShapeConvex, PEXShapeUnknown). ignore_edges A flag that determines if surface edges are rendered (True or False). contour_hint A flag that indicates whether contours are disjoint or overlap- ping (PEXContourDisjoint, PEXContourNested, PEXContourIntersect- ing, PEXContourUnknown). facet_attributes A mask indicating the facet attributes provided (PEXGANone, PEX- GAColor, PEXGANormal). vertex_attributes A mask indicating the vertex attributes provided (PEXGANone, PEX- GAColor, PEXGANormal, PEXGAEdges). color_type The type of color data provided (PEXColorTypeIndexed, PEXColor- TypeRGB, PEXColorTypeCIE, PEXColorTypeHSV, PEXColorTypeHLS, PEX- ColorTypeRGB8, PEXColorTypeRGB16). count The number of fill areas in the set. (c) O'Reilly & Associates, Inc. - 1 - PEX Early Release November 1992 PEXFillAreaSetWithData(3G) PEXFillAreaSetWithData(3G) facet_data A pointer to facet data. vertex_lists A pointer to the list of vertex arrays defining each contour of the fill area set. Returns None

PEXFillAreaWithData - 3D Fill Area Primitive With Additional Data Syntax void PEXFillAreaWithData(Display *display, XID resource_id, PEXOCRequestType req_type, int shape_hint, int ignore_edges, unsigned int facet_attributes, unsigned int vertex_attributes, int color_type, PEXFacetData *facet_data, unsigned int count, PEXArrayOfVertex vertices) Parameters 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). shape_hint The shape of the fill area (PEXShapeComplex, PEXShapeNonConvex, PEXShapeConvex, PEXShapeUnknown). ignore_edges A flag that determines if surface edges are rendered (True or False). facet_attributes A mask indicating the facet attributes provided (PEXGANone, PEX- GAColor, PEXGANormal). vertex_attributes A mask indicating the vertex attributes provided (PEXGANone, PEX- GAColor, PEXGANormal). color_type The type of color data provided (PEXColorTypeIndexed, PEXColor- TypeRGB, PEXColorTypeCIE, PEXColorTypeHSV, PEXColorTypeHLS, PEX- ColorTypeRGB8, PEXColorTypeRGB16). facet_data A pointer to facet data. count The number of vertices. vertices An array of vertices defining the fill area. (c) O'Reilly & Associates, Inc. - 1 - PEX Early Release November 1992 PEXFillAreaWithData(3G) PEXFillAreaWithData(3G) Returns None

PEXFinishOCs - Finish Encoded Output Commands Syntax void PEXFinishOCs(Display *display) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. Returns None

PEXFreeEnumInfo - Free Memory Allocated for Enumerated Type Information Syntax void PEXFreeEnumInfo(unsigned long count, unsigned long *info_count, PEXEnumTypeDesc *enum_info) Parameters count The number of enumerated types. info_count An array of counts. This corresponds to the info_count_return parameter in PEXGetEnumTypeInfo. enum_info An array of enumerated type descriptors. This corresponds to the enum_info_return parameter of PEXGetEnumTypeInfo. Returns None

PEXFreeFontInfo - Free Font Info Returned by PEXListFontsWithInfo and PEXQueryFont Syntax void PEXFreeFontInfo(unsigned long count, PEXFontInfo *font_info) Parameters count The number of font info structures. font_info An array of font info structures. Returns None

PEXFreeFontNames - Free Font Names Returned by PEXListFonts, PEXListFontsWithInfo Syntax void PEXFreeFontNames(unsigned long count, char **font_names) Parameters count The number of font names. font_names An array of font names (null-terminated strings). Returns None

PEXFreeLookupTable - Free Lookup Table Syntax void PEXFreeLookupTable(Display *display, PEXLookupTable table) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. table The resource identifier of the lookup table. Returns None

PEXFreeNameSet - Free Name Set Syntax void PEXFreeNameSet(Display *display, PEXNameSet nameset) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. nameset The resource identifier of the name set. Returns None

PEXFreeOCData - Deallocate OC Data Syntax void PEXFreeOCData(unsigned long count, PEXOCData *oc_data) Parameters count The number of output commands. oc_data An array of output command data. Returns None

PEXFreePCAttributes - Free Storage Returned by PEXGetPipelineContext Syntax void PEXFreePCAttributes(PEXPCAttributes *values) Parameters values A pointer to the pipeline context attribute values. Returns None

PEXFreePDAttributes - Free Storage Returned by PEXGetPickDevice Syntax void PEXFreePDAttributes(PEXPDAttributes *values) Parameters values A pointer to the pick device attribute values. Returns None

PEXFreePMAttributes - Free Storage Returned by PEXGetPickMeasure Syntax void PEXFreePMAttributes(PEXPMAttributes *values) Parameters values A pointer to the pick measure attribute values. Returns None

PEXFreePickMeasure - Free Pick Measure Syntax void PEXFreePickMeasure(Display *display, PEXPickMeasure pick_measure) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. pick_measure The resource identifier of the pick measure. Returns None

PEXFreePickPaths - Free Memory Allocated for Pick Paths Syntax void PEXFreePickPaths(unsigned long count, PEXPickPath *pick_paths) Parameters count The number of pick paths. pick_paths An array of pick paths. Returns None

PEXFreePipelineContext - Free Pipeline Context Syntax void PEXFreePipelineContext(Display *display, PEXPipelineContext context) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. context The resource identifier of the pipeline context. Returns None

PEXFreeRenderer - Free Renderer Syntax void PEXFreeRenderer(Display *display, PEXRenderer renderer) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. renderer The resource identifier of the renderer. Returns None

PEXFreeRendererAttributes - Free Storage Returned by PEXGetRendererAttributes Syntax void PEXFreeRendererAttributes(PEXRendererAttributes *values) Parameters values A pointer to the renderer attribute values. Returns None

PEXFreeSCAttributes - Free Storage Returned by PEXGetSearchContext Syntax void PEXFreeSCAttributes(PEXSCAttributes *values) Parameters values A pointer to the search context attribute values. Returns None

PEXFreeSearchContext - Free Search Context Syntax void PEXFreeSearchContext(Display *display, PEXSearchContext context) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. context The resource identifier of the search context. Returns None

PEXFreeStructurePaths - Free Structure Paths Memory Syntax void PEXFreeStructurePaths(unsigned long count, PEXStructurePath *paths) Parameters count The number of structure paths. paths An array of structure paths. Returns None

PEXFreeTableEntries - Free Storage associated with Tables Entries Return Parameters Syntax void PEXFreeTableEntries(int table_type, unsigned int count, PEXPointer entries) Parameters table_type The type of table entries in the array. count The number of entries in the array. entries An array of table entries. Returns None

PEXFreeWorkstation - Free Workstation Syntax void PEXFreeWorkstation(Display *display, PEXWorkstation workstation) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. workstation The resource identifier of the workstation. Returns None

PEXFreeWorkstationAttributes - Free Storage Returned by PEXGetWorkstationAttributes Syntax void PEXFreeWorkstationAttributes(PEXWorkstationAttributes *values) Parameters values A pointer to the workstation attribute values. Returns None

PEXGDP - 3D Generalized Drawing Primitive Syntax void PEXGDP(Display *display, XID resource_id, PEXOCRequestType req_type, long gdp_id, unsigned int count, PEXCoord *points, unsigned long length, char *data) Parameters 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 points. points The points used by the GDP. length The length, in bytes, of the data. data Additional data used by the GDP. Returns None

PEXGDP2D - 2D Generalized Drawing Primitive Syntax void PEXGDP2D(Display *display, XID resource_id, PEXOCRequestType req_type, long gdp_id, unsigned int count, PEXCoord2D *points, unsigned long length, char *data) Parameters 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 points. points The points used by the GDP. length The length, in bytes, of the data. data Additional data used by the GDP. Returns None

PEXGSE - Generalized Structure Element Syntax void PEXGSE(Display *display, XID resource_id, PEXOCRequestType req_type, long id, int length, char *data) Parameters 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). id The identifier of the GSE. length The length, in bytes, of the GSE data. data A pointer to the GSE data. Returns None

PEXGeoNormFillArea.3g

PEXGeoNormFillAreaSet.3g

PEXGeoNormQuadrilateralMesh(unsigned - dimensional (row-major) array of vertices defining the qua- drilateral mesh. Returns Zero if successful; otherwise, one of the following: PEXBadPrimitive A normal cannot be computed for one or more quadrila- terals in the mesh.

PEXGeoNormSetOfFillAreaSets.3g

PEXGeoNormTriangleStrip.3g

PEXGetAncestors - Get Ancestors Syntax PEXStructurePath *PEXGetAncestors(Display *display, PEXStructure structure, int path_part, unsigned long path_depth, unsigned long *count_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. structure The resource identifier of the structure. path_part The part of the path to return (PEXTopPart or PEXBottomPart). path_depth The maximum number of structure network path levels to be returned in each path found. count_return Returns the number of paths found. Returns An array of structure paths defining the ancestors of the specified structure; a null pointer if unsuccessful.

PEXGetDefinedIndices - Get Lookup Table Defined Indices Syntax Status PEXGetDefinedIndices(Display *display, PEXLookupTable table, unsigned long *count_return, PEXTableIndex **indices_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. table The resource identifier of the lookup table. count_return Returns the number of returned indices. indices_return Returns an array of indices to defined table entries. Returns Zero if unsuccessful, non-zero otherwise.

PEXGetDescendants - Get Descendants Syntax PEXStructurePath *PEXGetDescendants(Display *display, PEXStructure structure, int path_part, unsigned long path_depth, unsigned long *count_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. structure The resource identifier of the structure. path_part The part of the path to return (PEXTopPart or PEXBottomPart). path_depth The maximum number of structure network path levels to be returned in each path found. count_return Returns the number of paths found. Returns An array of structure paths defining the descendants of the specified structure; a null pointer if unsuccessful.

PEXGetElementInfo - Get Element Information Syntax Status PEXGetElementInfo(Display *display, PEXStructure structure, int whence1, long offset1, int whence2, long offset2, int float_format, unsigned long *count_return, PEXElementInfo **info_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. structure The resource identifier of the structure. whence1 A value specifying, with offset1, the first limit of the range of queried elements (PEXBeginning, PEXCurrent, PEXEnd). offset1 The offset from whence1 denoting the first limit of the range of queried elements. whence2 A value specifying, with offset2, the second limit of the range of elements to be queried (PEXBeginning, PEXCurrent, PEXEnd). offset2 The offset from whence2 denoting the second limit of the range of elements to be queried. float_format The floating point format to use when computing element sizes (PEXIEEE_754_32, PEXDEC_F_Floating, PEXIEEE_754_64, PEXDEC_D_Floating). count_return Returns the number element info records returned. info_return Returns an array of element info records describing the elements in the specified range. Returns Zero if unsuccessful, non-zero otherwise.

PEXGetEnumTypeInfo - Get Enumerated Type Information Syntax Status PEXGetEnumTypeInfo(Display *display, Drawable drawable, unsigned long count, int *enum_types, unsigned long item_mask, unsigned long **info_count_return, PEXEnumTypeDesc **enum_info_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. drawable The resource identifier of a drawable. count The number of enumerated types. enum_types A list of enumerated types for which information is to be returned. (See the Description for valid values.) item_mask A mask indicating the data to be returned for each enumerated type. (See the Description for valid values.) info_count_return Returns an array of counts. For each enumerated type, there is an entry specifying the number of descriptors in the return value array. enum_info_return Returns an array of enumerated type descriptors containing the enumerated type information. Returns Zero if unsuccessful; non-zero otherwise.

PEXGetExtensionInfo - Get Extension Information Syntax PEXExtensionInfo *PEXGetExtensionInfo(Display *display) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. Returns A pointer to the extension information; a null pointer if unsuccessful.

PEXGetImpDepConstants - Get Implementation Dependent Constants Syntax Status PEXGetImpDepConstants(Display *display, Drawable drawable, unsigned long count, unsigned short *names, PEXImpDepConstant **constants_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. drawable The resource identifier of a drawable. count The number of implementation-dependent constants. names An array of names of implementation-dependent constants to be returned. (See the Description for valid values.) constants_return Returns an array of implementation-dependent constants. Returns Zero if unsuccessful; non-zero otherwise.

PEXGetNameSet - Get Name Set Syntax Status PEXGetNameSet(Display *display, PEXNameSet nameset, unsigned long *count_return, PEXName **names_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. nameset The resource identifier of the name set to be queried. count_return Returns the number of names. names_return Returns an array of names. Returns Zero if unsuccessful; non-zero otherwise.

PEXGetOCAddr - Get Address For Encoded Output Commands Syntax char *PEXGetOCAddr(Display *display, int length) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. length The number of bytes of data to be written by the application. Returns A pointer to memory where the application can write output command data; a null pointer if unsuccessful.

PEXGetOCAddrMaxSize - Macro to Obtain the Maximum Size for PEXGetOCAddr Syntax PEXGetOCAddrMaxSize(display) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call.

PEXGetPickDevice - Get Pick Device Attributes Syntax PEXPDAttributes *PEXGetPickDevice(Display *display, PEXWorkstation workstation, int pick_device_type, unsigned long value_mask) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. workstation The resource identifier of the workstation. pick_device_type The pick device type (PEXPickDeviceDCHitBox or PEXPickDeviceNP- CHitVolume). value_mask A mask indicating which attributes to return. Returns A pointer to the pick device attribute values; a null pointer if unsuccessful.

PEXGetPickMeasure - Get Pick Measure Attributes Syntax PEXPMAttributes *PEXGetPickMeasure(Display *display, PEXPickMeasure pick_measure, unsigned long value_mask) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. pick_measure The resource identifier of the pick measure. value_mask A mask indicating which attributes to return. Returns A pointer to the pick measure attribute values; a null pointer if unsuccessful.

PEXGetPipelineContext - Get Pipeline Context Attributes Syntax PEXPCAttributes *PEXGetPipelineContext(Display *display, PEXPipelineContext context, unsigned long *value_mask) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. context The resource identifier of the pipeline context. value_mask A pointer to an array of three unsigned long. Returns A pointer to pipeline context values; a null pointer if unsuccessful.

PEXGetPredefinedEntries - Get Lookup Table Predefined Indices Syntax Status PEXGetPredefinedEntries(Display *display, Drawable drawable, int table_type, unsigned int start, unsigned int count, PEXPointer *entries_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. drawable The resource identifier of a drawable. table_type The type of lookup table (see the Description). start The index of the first predefined entry to be returned. count The number of predefined entries requested. entries_return Returns an array of predefined table entries. Returns Zero if unsuccessful, non-zero otherwise.

PEXGetProtocolFloatFormat - Return Float Format used on Specified Display Connection Syntax int PEXGetProtocolFloatFormat(Display *display) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. Returns Protocol floating point format (see PEXGetEnumTypeInfo); zero if unsuccessful.

PEXGetRendererAttributes - Get Renderer Attribute Values Syntax PEXRendererAttributes *PEXGetRendererAttributes(Display *display, PEXRenderer renderer, unsigned long value_mask) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. renderer The resource identifier of the renderer to be queried. value_mask A mask indicating attributes to be returned from the renderer. Returns A pointer to the renderer attribute values; a null pointer if unsuccessful.

PEXGetRendererDynamics - Get Renderer Attribute Modification Dynamics Syntax Status PEXGetRendererDynamics(Display *display, PEXRenderer renderer, unsigned long *tables_return, unsigned long *name_sets_return, unsigned long *attributes_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. renderer The resource identifier of the renderer. tables_return Returns a mask describing dynamics of lookup tables associated with the renderer. name_sets_return Returns a mask describing dynamics of name sets associated with the renderer. attributes_return Returns a mask describing dynamics of other attributes associated with the renderer. Returns Zero if unsuccessful, non-zero otherwise.

PEXGetSearchContext - Get Search Context Attributes Syntax PEXSCAttributes *PEXGetSearchContext(Display *display, PEXSearchContext context, unsigned long value_mask) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. context The resource identifier of the search context to be queried. value_mask A mask indicating which attributes to return. Returns A pointer to the requested attribute values; a null pointer if unsuccessful.

PEXGetSizeOCs - Return the Protocol Formatted Size of Output Commands Syntax int PEXGetSizeOCs(int float_format, int oc_count, PEXOCData *oc_data) Parameters float_format The floating point format to use in computing the formatted size. oc_count The number of output commands. oc_data An array of output command data. Returns The size, in bytes, of the formatted output commands; zero if unsuccessful.

PEXGetStructureInfo - Get Structure Information Syntax Status PEXGetStructureInfo(Display *display, PEXStructure structure, int float_format, unsigned long value_mask, PEXStructureInfo *info_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. structure The resource identifier of the structure. float_format The floating point format to use when computing element sizes (PEXIEEE_754_32, PEXDEC_F_Floating, PEXIEEE_754_64, PEXDEC_D_Floating). value_mask A mask indicating which values to return. info_return Returns information about the structure resource. Returns Zero if unsuccessful, non-zero otherwise.

PEXGetStructuresInNetwork - Get Structures in Network Syntax PEXStructure *PEXGetStructuresInNetwork(Display *display, PEXStructure structure, int which, unsigned long *count_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. structure The resource identifier of the root structure in the structure network. which A value indicating which structure resource identifiers to return (PEXAll or PEXOrphans). count_return Returns the number of structure resource identifiers returned. Returns An array of structure resource identifiers; a null pointer if unsuc- cessful.

PEXGetTableEntries - Get Lookup Table Entries Syntax Status PEXGetTableEntries(Display *display, PEXLookupTable table, unsigned int start, unsigned int count, int value_type, int *table_type_return, PEXPointer *entries_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. table The resource identifier of the lookup table from which the table entries are to be obtained. start The index of the first lookup table entry to be returned. count The number of entries requested. value_type The type of values to return (PEXSetValue or PEXRealizedValue). table_type_return Returns the type of table. entries_return Returns an array of table entries. Returns Zero if unsuccessful, non-zero otherwise.

PEXGetTableEntry - Get Lookup Table Entry Syntax PEXPointer PEXGetTableEntry(Display *display, PEXLookupTable table, unsigned int index, int value_type, int *status_return, int *table_type_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. table The resource identifier of the lookup table. index The index of the entry to be returned from the lookup table. value_type The type of values to return (PEXSetValue or PEXRealizedValue). status_return Returns the entry status, either PEXDefinedEntry if the specified lookup table entry is defined or PEXDefaultEntry if it is unde- fined. table_type_return Returns the type of table. Returns A pointer to the lookup table entry; a null pointer if unsuccessful.

PEXGetTableInfo - Get Lookup Table Information Syntax Status PEXGetTableInfo(Display *display, Drawable drawable, int table_type, PEXTableInfo *info_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. drawable The resource identifier of a drawable. table_type The type of lookup table (see the Description). info_return Returns the lookup table information. Returns Zero if unsuccessful, non-zero otherwise.

PEXGetWorkstationAttributes - Get Workstation Attribute Values Syntax PEXWorkstationAttributes *PEXGetWorkstationAttributes(Display *display, PEXWorkstation workstation, unsigned long *value_mask) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. workstation The resource identifier of the workstation. value_mask A mask indicating which workstation attribute values to return. Returns A pointer to the workstation attribute values; a null pointer if unsuccessful.

PEXGetWorkstationDynamics - Get Workstation Attribute Modification Dynamics Syntax Status PEXGetWorkstationDynamics(Display *display, Drawable drawable, PEXWorkstationDynamics *dynamics_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. drawable The resource identifier of a drawable. dynamics_return Returns the dynamics of the specified workstation. Returns Zero if unsuccessful, non-zero otherwise.

PEXGetWorkstationPostings - Get Workstation Postings Syntax Status PEXGetWorkstationPostings(Display *display, PEXStructure structure, unsigned long *count_return, PEXWorkstation **postings_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. structure The resource identifier of the structure. count_return Returns the number of workstation identifiers. postings_return Returns an array of workstation resource identifiers. Returns Zero if unsuccessful, non-zero otherwise.

PEXGetWorkstationViewRep - Get Workstation View Representation Syntax Status PEXGetWorkstationViewRep(Display *display, PEXWorkstation workstation, unsigned int index, int *update_return, PEXViewRep *req_view_return, PEXViewRep *cur_view_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. workstation The resource identifier of the workstation. index The view table index. update_return Returns the update status of the view table index. req_view_return Returns the requested value of the view table index. cur_view_return Returns the current value of the view table index. Returns Zero if unsuccessful, non-zero otherwise.

PEXHPChangePipelineContext.3g

PEXHPChangeRenderer.3g

PEXHPFreePCAttributes.3g

PEXHPFreeRendererAttributes.3g

PEXHPGetPipelineContext.3g

PEXHPGetRendererAttributes.3g

PEXHPMarkersWithData.3g

PEXHPPolylineSetWithData.3g

PEXHPSetAlphaBlendFunction.3g

PEXHPSetCappingPlanes.3g

PEXHPSetDeformationMode.3g

PEXHPSetDeformationValueLocation.3g

PEXIdentityMatrix.3g

PEXIdentityMatrix2D.3g

PEXInitialize - Initialize PEXlib display connection Syntax int PEXInitialize(Display *display, PEXExtensionInfo **info_return, int length, char *error_string) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. info_return Returns a pointer to the extension information; if available (see the Description). length The length, in bytes, of the memory allocated for the error string. error_string A pointer to memory allocated for the error string. Returns Zero if successful; otherwise, one of the following return values: PEXBadExtension the PEX server extension does not exist, PEXBadProtocolVersion the PEX server extension does not support a compatible protocol version, PEXBadFloatConversion the PEX server extension does not support a protocol floating point format compatible with PEXlib's native format or a format to which PEXlib supports conversion, or PEXBadLocalAlloc PEXlib client-side allocation failed.

PEXInvertMatrix(PEXMatrix - zero if unsuccessful.

PEXInvertMatrix2D(PEXMatrix3x3 - zero if unsuccessful.

PEXLabel - Structure Label Syntax void PEXLabel(Display *display, XID resource_id, PEXOCRequestType req_type, long label) Parameters 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). label A value to be used as a label. Returns None

PEXListFonts - List PEX Fonts Syntax char **PEXListFonts(Display *display, char *pattern, unsigned int max_names, unsigned long *count_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. pattern A null-terminated string pattern. max_names The maximum number of names to be returned. count_return Returns the actual number of font names. Returns An array of font names (null-terminated strings); a null pointer if unsuccessful or if no PEX fonts supported.

PEXListFontsWithInfo - List PEX Fonts With Information Syntax char **PEXListFontsWithInfo(Display *display, char *pattern, unsigned int max_names, unsigned long *count_return, PEXFontInfo **info_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. pattern A null-terminated string pattern. max_names The maximum number of names to be returned. count_return Returns the actual number of font names. font_info Returns an array of font info structures (one for each name). Returns An array of font names (null-terminated strings); a null pointer if unsuccessful or if no PEX fonts supported.

PEXLoadFont - Load PEX Font Syntax PEXFont PEXLoadFont(Display *display, char *font_name) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. font_name The font name (null-terminated string). Returns The resource identifier of the loaded PEX font.

PEXLookAtViewMatrix.3g

PEXMapDCToWC - Map Device Coordinate Points to World Coordinate Points Syntax Status PEXMapDCToWC(Display *display, PEXWorkstation workstation, unsigned long dc_count, PEXDeviceCoord *dc_points, unsigned int *view_index_return, unsigned long *wc_count_return, PEXCoord **wc_points_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. workstation The resource identifier of the workstation. dc_count The number of device coordinate points. dc_points An array of device coordinates. view_index_return Returns the view index of the view containing most or all of the points. wc_count_return Returns the number of world coordinate points. wc_points_return Returns an array of world coordinate points. Returns Zero if unsuccessful, non-zero otherwise.

PEXMapWCToDC - Map World Coordinate Points to Device Coordinate Points Syntax Status PEXMapWCToDC(Display *display, PEXWorkstation workstation, unsigned long wc_count, PEXCoord *wc_points, unsigned int view_index, unsigned long *dc_count_return, PEXDeviceCoord **dc_points_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. workstation The resource identifier of the workstation. wc_count The number of world coordinate points. wc_points An array of world coordinate points. view_index The view index to use in transforming the world coordinate points. dc_count_return Returns the number of device coordinate points. dc_points_return Returns an array of device coordinate points. Returns Zero if unsuccessful, non-zero otherwise.

PEXMapXCToNPC(int - left corner of the viewport; the second point is the upper-right. npc_sub_volume A pointer to an NPC subvolume, typically that of a renderer resource view_count The number of views to search views The view entries to search for inclusion of the transformed points view_return Returns the view found to contain the most points count_return Returns the number of points contained in the returned view, or the number of points transformed if no views are specified. points_return Returns a pointer to an array in which to store the transformed points. (c) O'Reilly & Associates, Inc. - 1 - PEX Early Release November 1992 PEXMapXCToNPC(3G) PEXMapXCToNPC(3G) Returns Zero if successful; otherwise, one of the following: PEXBadViewport PEXBadSubVolume

PEXMapXCToNPC2D(int - coordinate (XC) points to transform. window_height The height of the drawable viewport An array of two device coordinate points defining a viewport, typically that of a renderer resource. The first point in the array is the lower-left corner of the viewport; the second point is the upper-right. npc_sub_volume A pointer to an NPC subvolume, typically that of a renderer resource view_count The number of views to search views The view entries to search for inclusion of the transformed points view_return The view found to contain the most points count_return Returns the number of points contained in the returned view, or the number of points transformed if no views are specified. points_return A pointer to an array in which to store the transformed points. Returns Zero if successful; otherwise, one of the following: PEXBadViewport PEXBadSubVolume (c) O'Reilly & Associates, Inc. - 1 - PEX Early Release November 1992 PEXMapXCToNPC2D(3G) PEXMapXCToNPC2D(3G)

PEXMarkers - 3D Markers Primitive Syntax void PEXMarkers(Display *display, XID resource_id, PEXOCRequestType req_type, unsigned int count, PEXCoord *points) Parameters 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). count The number of points. points An array of points specifying marker locations. Returns None

PEXMarkers2D - 2D Markers Primitive Syntax void PEXMarkers2D(Display *display, XID resource_id, PEXOCRequestType req_type, unsigned int count, PEXCoord2D *points) Parameters 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). count The number of points. points An array of points specifying marker locations. Returns None

PEXMatchRenderingTargets - Return Information about Supported Rendering Targets Syntax Status PEXMatchRenderingTargets(Display *display, Drawable drawable, int depth, int type, Visual *visual, unsigned long max_targets, unsigned long *count_return, PEXRenderingTarget **targets_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. drawable The drawable indicates which screen the application is interested in. depth The depth of interest. type The drawable type of interest (PEXAnyDrawable, PEXWindowDrawable, PEXPixmapDrawable, PEXBufferDrawable). visual The visual of interest. max_targets The maximum number of targets to return. count_return Returns the actual number of targets in the return array. targets_return Returns an array of rendering target information. Returns Zero if unsuccessful; non-zero otherwise.

PEXMatrixMult.3g

PEXMatrixMult2D.3g

PEXNPCToXCTransform(PEXNPCSubVolume - left corner of the viewport; the second point is the upper-right. window_height The height of the drawable transform_return The returned transformation Returns Zero if successful; otherwise, one of the following: PEXBadViewport (xmin >= xmax, or ymin >= ymax, or zmin > zmax) PEXBadSubVolume (xmin >= xmax, or ymin >= ymax, or zmin > zmax)

PEXNPCToXCTransform2D(PEXNPCSubVolume - left corner of the viewport; the second point is the upper-right. window_height The height of the drawable transform_return The returned transformation Returns Zero if successful; otherwise, one of the following: PEXBadViewport (xmin >= xmax, or ymin >= ymax, or zmin > zmax) PEXBadSubVolume (xmin >= xmax, or ymin >= ymax, or zmin > zmax)

PEXNURBCurve - Non-Uniform Rational B-spline Curve Primitive Syntax void PEXNURBCurve(Display *display, XID resource_id, PEXOCRequestType req_type, int rationality, int order, float *knots, unsigned int count, PEXArrayOfCoord points, double tmin, double tmax) Parameters 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). rationality The type of B-spline curve, whether rational or non-rational (PEXRational or PEXNonRational). order The order of the polynomial expression. knots An array of floats specifying the B-spline curve knots. count The number of control points that define the curve. points An array of control points defining the B-spline curve. tmin The minimum parameter value at which to evaluate the curve. tmax The maximum parameter value at which to evaluate the curve. Returns None

PEXNURBSurface - Non-Uniform Rational B-spline Surface Primitive Syntax void PEXNURBSurface(Display *display, XID resource_id, PEXOCRequestType req_type, int rationality, int uorder, int vorder, float *uknots, float *vknots, unsigned int col_count, unsigned int row_count, PEXArrayOfCoord points, unsigned int curve_count, PEXListOfTrimCurve *trim_curves) Parameters 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). rationality The type of B-spline surface, whether rational or non-rational (PEXRational or PEXNonRational). uorder The order of the polynomial expression in the u direction. vorder The order of the polynomial expression in the v direction. uknots An array of floats specifying the B-spline curve knots in the u direction. vknots An array of floats specifying the B-spline curve knots in the v direction. col_count The number of columns in the points array (number of points in the u direction). row_count The number of rows in the points array (number of points in the v direction). points An array of points defining the B-spline surface. (c) O'Reilly & Associates, Inc. - 1 - PEX Early Release November 1992 PEXNURBSurface(3G) PEXNURBSurface(3G) curve_count The number of trimming curves. trim_curves A pointer to a list of trimming curves. Returns None

PEXNoop - Noop Output Command Syntax void PEXNoop(Display *display, XID resource_id, PEXOCRequestType req_type) Parameters 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). Returns None

PEXNormalizeVectors.3g

PEXNormalizeVectors2D.3g

PEXOrthoProjMatrix(double - the viewing box depth, width, or height is zero.

PEXPerspProjMatrix(double - point. aspect The aspect ratio (width/height) of the perspective viewing frustum. near The distance to the near clipping plane. far The distance to the far clipping plane. matrix_return matrix in which result is stored Returns Zero if successful; otherwise, one of the following: PEXBadLimits near <= far, fovy = 0, aspect = 0, or distance <= near

PEXPickAll - Pick All Traversal Syntax PEXPickPath *PEXPickAll(Display *display, Drawable drawable, PEXRenderer renderer, int method, int max_hits, int pick_device_type, PEXPickRecord *pick_record, int *status_return, int *more_return, unsigned long *count_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. drawable The resource identifier of a drawable. renderer The resource identifier of the renderer. method The pick all method (PEXPickAllAll or PEXPickAllVisible). max_hits The maximum number of hits to be returned. pick_device_type The pick device type (PEXPickDeviceDCHitBox or PEXPickDeviceNP- CHitVolume). pick_record A pointer to the pick data record. status_return Returns the status of the pick operation. more_return Returns the status of remaining picks. count_return Returns the number of pick paths. Returns An array of pick paths; a null pointer if unsuccessful or no pick (see also status_return).

PEXPickOne - Pick One Traversal Syntax PEXPickPath *PEXPickOne(Display *display, Drawable drawable, PEXRenderer renderer, PEXStructure structure, int method, int pick_device_type, PEXPickRecord *pick_record, int *status_return, int *undetectable_return) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. drawable The resource identifier of a drawable. renderer The resource identifier of the renderer. structure The resource identifier for the root structure of the structure network. method The pick one method (PEXPickLast, PEXPickClosestZ, PEXPick- VisibleAny PEXPickVisibleClosest). pick_device_type The pick device type (PEXPickDeviceDCHitBox or PEXPickDeviceNPC- HitVolume). pick_record A pointer to the pick data record. status_return Returns the status of the pick operation. undetectable_return Returns True or False indicating whether another pick better satisfied the pick criteria with the exception that it did not pass the pick filter test. Returns A pointer to the pick path; a null pointer if unsuccessful or no pick (see also status_return).

PEXPolarViewMatrix(PEXCoord - clockwise when viewed from the positive `y' axis. altitude The angular inclination of the line of sight from the `x',`z' plane. The `altitude' argument is the angle in radians. Positive values are towards the positive `y' axis. twist The up direction of the view, given as an angle, in radians, about the line of sight. Positive values of twist are in the counter-clockwise direction. matrix_return matrix in which result is stored Returns Zero if successful; otherwise, one of the following: PEXBadDistance

PEXPolyline - 3D Polyline Primitive Syntax void PEXPolyline(Display *display, XID resource_id, PEXOCRequestType req_type, unsigned int count, PEXCoord *points) Parameters 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). count The number of points. points An array of points defining the polyline. Returns None

PEXPolyline2D - 2D Polyline Primitive Syntax void PEXPolyline2D(Display *display, XID resource_id, PEXOCRequestType req_type, unsigned int count, PEXCoord2D *points) Parameters 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). count The number of points. points An array of points defining the polyline. Returns None

PEXPolylineSetWithData - 3D Set of Polylines Primitive Syntax void PEXPolylineSetWithData(Display *display, XID resource_id, PEXOCRequestType req_type, unsigned int vertex_attributes, int color_type, unsigned int count, PEXListOfVertex *vertex_lists) Parameters 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). vertex_attributes A mask indicating the vertex attributes provided (PEXGANone or PEXGAColor). color_type The type of color data provided (PEXColorTypeIndexed, PEXColor- TypeRGB, PEXColorTypeCIE, PEXColorTypeHSV, PEXColorTypeHLS, PEX- ColorTypeRGB8, PEXColorTypeRGB16). count The number of polylines. vertex_lists A pointer to a list of vertex arrays defining each polyline in the set. Returns None

PEXPostStructure - Post Structure to a Workstation Syntax void PEXPostStructure(Display *display, PEXWorkstation workstation, PEXStructure structure, double priority) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. workstation The resource identifier of the workstation. structure The resource identifier of the structure. priority The priority of the newly-posted structure. Returns None

PEXQuadrilateralMesh - 3D Quadrilateral Mesh Primitive Syntax void PEXQuadrilateralMesh(Display *display, XID resource_id, PEXOCRequestType req_type, int shape_hint, unsigned int facet_attributes, unsigned int vertex_attributes, int color_type, PEXArrayOfFacetData facet_data, unsigned int col_count, unsigned int row_count, PEXArrayOfVertex vertices) Parameters 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). shape_hint The shape which describes all of the quadrilaterals (PEXShapeCom- plex, PEXShapeNonConvex, PEXShapeConvex, PEXShapeUnknown). facet_attributes A mask indicating the facet attributes provided (PEXGANone, PEX- GAColor, PEXGANormal). vertex_attributes A mask indicating the vertex attributes provided (PEXGANone, PEX- GAColor, PEXGANormal). color_type The type of color data provided (PEXColorTypeIndexed, PEXColor- TypeRGB, PEXColorTypeCIE, PEXColorTypeHSV, PEXColorTypeHLS, PEX- ColorTypeRGB8, PEXColorTypeRGB16). facet_data An array of facet data. col_count The number of columns in the vertex array. row_count The number of rows in the vertex array. vertices A two-dimensional (row-major) array of vertices defining the qua- drilateral mesh. (c) O'Reilly & Associates, Inc. - 1 - PEX Early Release November 1992 PEXQuadrilateralMesh(3G) PEXQuadrilateralMesh(3G) Returns None

PEXQueryEncodedTextExtents - Query Encoded Text Extents Syntax PEXTextExtent *PEXQueryEncodedTextExtents(Display *display, XID resource_id, unsigned int font_table_index, int path, double expansion, double spacing, double height, int halign, int valign, unsigned long count, PEXListOfEncodedText *encoded_text) Parameters display A pointer to a display structure returned by a successful XOpenDisplay call. resource_id The resource identifier of either a renderer, a workstation or a text font table. font_table_index The text font table index. path The text path (PEXPathRight, PEXPathLeft, PEXPathUp, PEXPath- Down). expansion The text character expansion factor. spacing The text character spacing factor. height The text character height. halign The text horizontal text alignment (PEXHAlignNormal, PEX- HAlignLeft, PEXHAlignCenter, PEXHAlignRight). valign The text vertical text alignment (PEXVAlignNormal, PEXVAlignTop, PEXVAlignCap, PEXVAlignHalf, PEXVAlignBase, PEXVAlignBottom). count The number of encoded text strings. encoded_text An array of encoded text strings. Returns An array of text extents; a null pointer if unsuccessful. (c) O'Reilly & Associates, Inc. - 1 - PEX Early Release November 1992 PEXQueryEncodedTextExtents(3G) PEXQueryEncodedTextExtents(3G)