1
/* $Xorg: pl_oc_attr.c,v 1.5 2001/02/09 02:03:28 xorgcvs Exp $ */
3
/******************************************************************************
5
Copyright 1992, 1998 The Open Group
7
Permission to use, copy, modify, distribute, and sell this software and its
8
documentation for any purpose is hereby granted without fee, provided that
9
the above copyright notice appear in all copies and that both that
10
copyright notice and this permission notice appear in supporting
13
The above copyright notice and this permission notice shall be included in
14
all copies or substantial portions of the Software.
16
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
Except as contained in this notice, the name of The Open Group shall not be
24
used in advertising or otherwise to promote the sale, use or other dealings
25
in this Software without prior written authorization from The Open Group.
28
Copyright 1987,1991 by Digital Equipment Corporation, Maynard, Massachusetts
32
Permission to use, copy, modify, distribute, and sell this software and its
33
documentation for any purpose is hereby granted without fee, provided that
34
the above copyright notice appear in all copies and that both that copyright
35
notice and this permission notice appear in supporting documentation, and that
36
the name of Digital not be used in advertising or publicity
37
pertaining to distribution of the software without specific, written prior
38
permission. Digital make no representations about the suitability
39
of this software for any purpose. It is provided "as is" without express or
42
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
43
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
44
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
45
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
46
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
47
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
49
******************************************************************************/
52
#include "PEXlibint.h"
53
#include "pl_oc_util.h"
57
PEXSetMarkerType (display, resource_id, req_type, type)
59
INPUT Display *display;
60
INPUT XID resource_id;
61
INPUT PEXOCRequestType req_type;
65
register pexMarkerType *req;
67
BEGIN_SIMPLE_OC (MarkerType, resource_id, req_type, req);
68
req->markerType = type;
69
END_SIMPLE_OC (MarkerType, resource_id, req_type, req);
74
PEXSetMarkerScale (display, resource_id, req_type, scale)
76
INPUT Display *display;
77
INPUT XID resource_id;
78
INPUT PEXOCRequestType req_type;
82
register pexMarkerScale *req;
86
BEGIN_SIMPLE_OC (MarkerScale, resource_id, req_type, req);
87
CHECK_FP (fpConvert, fpFormat);
91
FP_CONVERT_DHTON (scale, req->scale, fpFormat);
96
END_SIMPLE_OC (MarkerScale, resource_id, req_type, req);
101
PEXSetMarkerColorIndex (display, resource_id, req_type, index)
103
INPUT Display *display;
104
INPUT XID resource_id;
105
INPUT PEXOCRequestType req_type;
106
INPUT unsigned int index;
109
register pexMarkerColorIndex *req;
111
BEGIN_SIMPLE_OC (MarkerColorIndex, resource_id, req_type, req);
113
END_SIMPLE_OC (MarkerColorIndex, resource_id, req_type, req);
118
PEXSetMarkerColor (display, resource_id, req_type, colorType, color)
120
INPUT Display *display;
121
INPUT XID resource_id;
122
INPUT PEXOCRequestType req_type;
124
INPUT PEXColor *color;
127
register pexMarkerColor *req;
133
lenofColor = GetColorLength (colorType);
135
PEXInitOC (display, resource_id, req_type,
136
LENOF (pexMarkerColor), lenofColor, pBuf);
138
if (pBuf == NULL) return;
140
CHECK_FP (fpConvert, fpFormat);
142
BEGIN_OC_HEADER (MarkerColor, lenofColor, pBuf, req);
144
req->colorType = colorType;
146
END_OC_HEADER (MarkerColor, pBuf, req);
148
pBuf = PEXGetOCAddr (display, NUMBYTES (lenofColor));
149
STORE_COLOR_VAL (colorType, (*color), pBuf, fpConvert, fpFormat);
151
PEXFinishOC (display);
152
PEXSyncHandle (display);
157
PEXSetMarkerBundleIndex (display, resource_id, req_type, index)
159
INPUT Display *display;
160
INPUT XID resource_id;
161
INPUT PEXOCRequestType req_type;
162
INPUT unsigned int index;
165
register pexMarkerBundleIndex *req;
167
BEGIN_SIMPLE_OC (MarkerBundleIndex, resource_id, req_type, req);
169
END_SIMPLE_OC (MarkerBundleIndex, resource_id, req_type, req);
174
PEXSetTextFontIndex (display, resource_id, req_type, index)
176
INPUT Display *display;
177
INPUT XID resource_id;
178
INPUT PEXOCRequestType req_type;
179
INPUT unsigned int index;
182
register pexTextFontIndex *req;
184
BEGIN_SIMPLE_OC (TextFontIndex, resource_id, req_type, req);
186
END_SIMPLE_OC (TextFontIndex, resource_id, req_type, req);
191
PEXSetTextPrecision (display, resource_id, req_type, precision)
193
INPUT Display *display;
194
INPUT XID resource_id;
195
INPUT PEXOCRequestType req_type;
199
register pexTextPrecision *req;
201
BEGIN_SIMPLE_OC (TextPrecision, resource_id, req_type, req);
202
req->precision = precision;
203
END_SIMPLE_OC (TextPrecision, resource_id, req_type, req);
208
PEXSetCharExpansion (display, resource_id, req_type, expansion)
210
INPUT Display *display;
211
INPUT XID resource_id;
212
INPUT PEXOCRequestType req_type;
213
INPUT double expansion;
216
register pexCharExpansion *req;
220
BEGIN_SIMPLE_OC (CharExpansion, resource_id, req_type, req);
221
CHECK_FP (fpConvert, fpFormat);
225
FP_CONVERT_DHTON (expansion, req->expansion, fpFormat);
228
req->expansion = expansion;
230
END_SIMPLE_OC (CharExpansion, resource_id, req_type, req);
235
PEXSetCharSpacing (display, resource_id, req_type, spacing)
237
INPUT Display *display;
238
INPUT XID resource_id;
239
INPUT PEXOCRequestType req_type;
240
INPUT double spacing;
243
register pexCharSpacing *req;
247
BEGIN_SIMPLE_OC (CharSpacing, resource_id, req_type, req);
248
CHECK_FP (fpConvert, fpFormat);
252
FP_CONVERT_DHTON (spacing, req->spacing, fpFormat);
255
req->spacing = spacing;
257
END_SIMPLE_OC (CharSpacing, resource_id, req_type, req);
262
PEXSetTextColorIndex (display, resource_id, req_type, index)
264
INPUT Display *display;
265
INPUT XID resource_id;
266
INPUT PEXOCRequestType req_type;
267
INPUT unsigned int index;
270
register pexTextColorIndex *req;
272
BEGIN_SIMPLE_OC (TextColorIndex, resource_id, req_type, req);
274
END_SIMPLE_OC (TextColorIndex, resource_id, req_type, req);
279
PEXSetTextColor (display, resource_id, req_type, colorType, color)
281
INPUT Display *display;
282
INPUT XID resource_id;
283
INPUT PEXOCRequestType req_type;
285
INPUT PEXColor *color;
288
register pexTextColor *req;
294
lenofColor = GetColorLength (colorType);
296
PEXInitOC (display, resource_id, req_type,
297
LENOF (pexTextColor), lenofColor, pBuf);
299
if (pBuf == NULL) return;
301
CHECK_FP (fpConvert, fpFormat);
303
BEGIN_OC_HEADER (TextColor, lenofColor, pBuf, req);
305
req->colorType = colorType;
307
END_OC_HEADER (TextColor, pBuf, req);
309
pBuf = PEXGetOCAddr (display, NUMBYTES (lenofColor));
310
STORE_COLOR_VAL (colorType, (*color), pBuf, fpConvert, fpFormat);
312
PEXFinishOC (display);
313
PEXSyncHandle (display);
318
PEXSetCharHeight (display, resource_id, req_type, height)
320
INPUT Display *display;
321
INPUT XID resource_id;
322
INPUT PEXOCRequestType req_type;
326
register pexCharHeight *req;
330
BEGIN_SIMPLE_OC (CharHeight, resource_id, req_type, req);
331
CHECK_FP (fpConvert, fpFormat);
335
FP_CONVERT_DHTON (height, req->height, fpFormat);
338
req->height = height;
340
END_SIMPLE_OC (CharHeight, resource_id, req_type, req);
345
PEXSetCharUpVector (display, resource_id, req_type, vector)
347
INPUT Display *display;
348
INPUT XID resource_id;
349
INPUT PEXOCRequestType req_type;
350
INPUT PEXVector2D *vector;
353
register pexCharUpVector *req;
357
BEGIN_SIMPLE_OC (CharUpVector, resource_id, req_type, req);
358
CHECK_FP (fpConvert, fpFormat);
362
FP_CONVERT_HTON (vector->x, req->up_x, fpFormat);
363
FP_CONVERT_HTON (vector->y, req->up_y, fpFormat);
367
req->up_x = vector->x;
368
req->up_y = vector->y;
371
END_SIMPLE_OC (CharUpVector, resource_id, req_type, req);
376
PEXSetTextPath (display, resource_id, req_type, path)
378
INPUT Display *display;
379
INPUT XID resource_id;
380
INPUT PEXOCRequestType req_type;
384
register pexTextPath *req;
386
BEGIN_SIMPLE_OC (TextPath, resource_id, req_type, req);
388
END_SIMPLE_OC (TextPath, resource_id, req_type, req);
393
PEXSetTextAlignment (display, resource_id, req_type, halignment, valignment)
395
INPUT Display *display;
396
INPUT XID resource_id;
397
INPUT PEXOCRequestType req_type;
398
INPUT int halignment;
399
INPUT int valignment;
402
register pexTextAlignment *req;
404
BEGIN_SIMPLE_OC (TextAlignment, resource_id, req_type, req);
405
req->alignment_vertical = valignment;
406
req->alignment_horizontal = halignment;
407
END_SIMPLE_OC (TextAlignment, resource_id, req_type, req);
412
PEXSetATextHeight (display, resource_id, req_type, height)
414
INPUT Display *display;
415
INPUT XID resource_id;
416
INPUT PEXOCRequestType req_type;
420
register pexATextHeight *req;
424
BEGIN_SIMPLE_OC (ATextHeight, resource_id, req_type, req);
425
CHECK_FP (fpConvert, fpFormat);
429
FP_CONVERT_DHTON (height, req->height, fpFormat);
432
req->height = height;
434
END_SIMPLE_OC (ATextHeight, resource_id, req_type, req);
439
PEXSetATextUpVector (display, resource_id, req_type, vector)
441
INPUT Display *display;
442
INPUT XID resource_id;
443
INPUT PEXOCRequestType req_type;
444
INPUT PEXVector2D *vector;
447
register pexATextUpVector *req;
451
BEGIN_SIMPLE_OC (ATextUpVector, resource_id, req_type, req);
452
CHECK_FP (fpConvert, fpFormat);
456
FP_CONVERT_HTON (vector->x, req->up_x, fpFormat);
457
FP_CONVERT_HTON (vector->y, req->up_y, fpFormat);
461
req->up_x = vector->x;
462
req->up_y = vector->y;
465
END_SIMPLE_OC (ATextUpVector, resource_id, req_type, req);
470
PEXSetATextPath (display, resource_id, req_type, path)
472
INPUT Display *display;
473
INPUT XID resource_id;
474
INPUT PEXOCRequestType req_type;
478
register pexATextPath *req;
480
BEGIN_SIMPLE_OC (ATextPath, resource_id, req_type, req);
482
END_SIMPLE_OC (ATextPath, resource_id, req_type, req);
487
PEXSetATextAlignment (display, resource_id, req_type, halignment, valignment)
489
INPUT Display *display;
490
INPUT XID resource_id;
491
INPUT PEXOCRequestType req_type;
492
INPUT int halignment;
493
INPUT int valignment;
496
register pexATextAlignment *req;
498
BEGIN_SIMPLE_OC (ATextAlignment, resource_id, req_type, req);
499
req->alignment_vertical = valignment;
500
req->alignment_horizontal = halignment;
501
END_SIMPLE_OC (ATextAlignment, resource_id, req_type, req);
506
PEXSetATextStyle (display, resource_id, req_type, style)
508
INPUT Display *display;
509
INPUT XID resource_id;
510
INPUT PEXOCRequestType req_type;
514
register pexATextStyle *req;
516
BEGIN_SIMPLE_OC (ATextStyle, resource_id, req_type, req);
518
END_SIMPLE_OC (ATextStyle, resource_id, req_type, req);
523
PEXSetTextBundleIndex (display, resource_id, req_type, index)
525
INPUT Display *display;
526
INPUT XID resource_id;
527
INPUT PEXOCRequestType req_type;
528
INPUT unsigned int index;
531
register pexTextBundleIndex *req;
533
BEGIN_SIMPLE_OC (TextBundleIndex, resource_id, req_type, req);
535
END_SIMPLE_OC (TextBundleIndex, resource_id, req_type, req);
540
PEXSetLineType (display, resource_id, req_type, type)
542
INPUT Display *display;
543
INPUT XID resource_id;
544
INPUT PEXOCRequestType req_type;
548
register pexLineType *req;
550
BEGIN_SIMPLE_OC (LineType, resource_id, req_type, req);
551
req->lineType = type;
552
END_SIMPLE_OC (LineType, resource_id, req_type, req);
557
PEXSetLineWidth (display, resource_id, req_type, width)
559
INPUT Display *display;
560
INPUT XID resource_id;
561
INPUT PEXOCRequestType req_type;
565
register pexLineWidth *req;
569
BEGIN_SIMPLE_OC (LineWidth, resource_id, req_type, req);
570
CHECK_FP (fpConvert, fpFormat);
574
FP_CONVERT_DHTON (width, req->width, fpFormat);
579
END_SIMPLE_OC (LineWidth, resource_id, req_type, req);
584
PEXSetLineColorIndex (display, resource_id, req_type, index)
586
INPUT Display *display;
587
INPUT XID resource_id;
588
INPUT PEXOCRequestType req_type;
589
INPUT unsigned int index;
592
register pexLineColorIndex *req;
594
BEGIN_SIMPLE_OC (LineColorIndex, resource_id, req_type, req);
596
END_SIMPLE_OC (LineColorIndex, resource_id, req_type, req);
601
PEXSetLineColor (display, resource_id, req_type, colorType, color)
603
INPUT Display *display;
604
INPUT XID resource_id;
605
INPUT PEXOCRequestType req_type;
607
INPUT PEXColor *color;
610
register pexLineColor *req;
616
lenofColor = GetColorLength (colorType);
618
PEXInitOC (display, resource_id, req_type,
619
LENOF (pexLineColor), lenofColor, pBuf);
621
if (pBuf == NULL) return;
623
CHECK_FP (fpConvert, fpFormat);
625
BEGIN_OC_HEADER (LineColor, lenofColor, pBuf, req);
627
req->colorType = colorType;
629
END_OC_HEADER (LineColor, pBuf, req);
631
pBuf = PEXGetOCAddr (display, NUMBYTES (lenofColor));
632
STORE_COLOR_VAL (colorType, (*color), pBuf, fpConvert, fpFormat);
634
PEXFinishOC (display);
635
PEXSyncHandle (display);
640
PEXSetCurveApprox (display, resource_id, req_type, approxMethod, tolerance)
642
INPUT Display *display;
643
INPUT XID resource_id;
644
INPUT PEXOCRequestType req_type;
645
INPUT int approxMethod;
646
INPUT double tolerance;
649
register pexCurveApprox *req;
653
BEGIN_SIMPLE_OC (CurveApprox, resource_id, req_type, req);
654
CHECK_FP (fpConvert, fpFormat);
656
req->approxMethod = approxMethod;
660
FP_CONVERT_DHTON (tolerance, req->tolerance, fpFormat);
663
req->tolerance = tolerance;
665
END_SIMPLE_OC (CurveApprox, resource_id, req_type, req);
670
PEXSetPolylineInterpMethod (display, resource_id, req_type, method)
672
INPUT Display *display;
673
INPUT XID resource_id;
674
INPUT PEXOCRequestType req_type;
678
register pexPolylineInterpMethod *req;
680
BEGIN_SIMPLE_OC (PolylineInterpMethod, resource_id, req_type, req);
681
req->polylineInterp = method;
682
END_SIMPLE_OC (PolylineInterpMethod, resource_id, req_type, req);
687
PEXSetLineBundleIndex (display, resource_id, req_type, index)
689
INPUT Display *display;
690
INPUT XID resource_id;
691
INPUT PEXOCRequestType req_type;
692
INPUT unsigned int index;
695
register pexLineBundleIndex *req;
697
BEGIN_SIMPLE_OC (LineBundleIndex, resource_id, req_type, req);
699
END_SIMPLE_OC (LineBundleIndex, resource_id, req_type, req);
704
PEXSetInteriorStyle (display, resource_id, req_type, style)
706
INPUT Display *display;
707
INPUT XID resource_id;
708
INPUT PEXOCRequestType req_type;
712
register pexInteriorStyle *req;
714
BEGIN_SIMPLE_OC (InteriorStyle, resource_id, req_type, req);
715
req->interiorStyle = style;
716
END_SIMPLE_OC (InteriorStyle, resource_id, req_type, req);
721
PEXSetInteriorStyleIndex (display, resource_id, req_type, index)
723
INPUT Display *display;
724
INPUT XID resource_id;
725
INPUT PEXOCRequestType req_type;
729
register pexInteriorStyleIndex *req;
731
BEGIN_SIMPLE_OC (InteriorStyleIndex, resource_id, req_type, req);
733
END_SIMPLE_OC (InteriorStyleIndex, resource_id, req_type, req);
738
PEXSetSurfaceColorIndex (display, resource_id, req_type, index)
740
INPUT Display *display;
741
INPUT XID resource_id;
742
INPUT PEXOCRequestType req_type;
743
INPUT unsigned int index;
746
register pexSurfaceColorIndex *req;
748
BEGIN_SIMPLE_OC (SurfaceColorIndex, resource_id, req_type, req);
750
END_SIMPLE_OC (SurfaceColorIndex, resource_id, req_type, req);
755
PEXSetSurfaceColor (display, resource_id, req_type, colorType, color)
757
INPUT Display *display;
758
INPUT XID resource_id;
759
INPUT PEXOCRequestType req_type;
761
INPUT PEXColor *color;
764
register pexSurfaceColor *req;
770
lenofColor = GetColorLength (colorType);
772
PEXInitOC (display, resource_id, req_type,
773
LENOF (pexSurfaceColor), lenofColor, pBuf);
775
if (pBuf == NULL) return;
777
CHECK_FP (fpConvert, fpFormat);
779
BEGIN_OC_HEADER (SurfaceColor, lenofColor, pBuf, req);
781
req->colorType = colorType;
783
END_OC_HEADER (SurfaceColor, pBuf, req);
785
pBuf = PEXGetOCAddr (display, NUMBYTES (lenofColor));
786
STORE_COLOR_VAL (colorType, (*color), pBuf, fpConvert, fpFormat);
788
PEXFinishOC (display);
789
PEXSyncHandle (display);
794
PEXSetReflectionAttributes (display, resource_id, req_type, reflectionAttr)
796
INPUT Display *display;
797
INPUT XID resource_id;
798
INPUT PEXOCRequestType req_type;
799
INPUT PEXReflectionAttributes *reflectionAttr;
802
register pexReflectionAttributes *req;
808
lenofColor = GetColorLength (reflectionAttr->specular_color.type);
810
PEXInitOC (display, resource_id, req_type,
811
LENOF (pexReflectionAttributes), lenofColor, pBuf);
813
if (pBuf == NULL) return;
815
CHECK_FP (fpConvert, fpFormat);
817
BEGIN_OC_HEADER (ReflectionAttributes, lenofColor, pBuf, req);
821
FP_CONVERT_HTON (reflectionAttr->ambient, req->ambient, fpFormat);
822
FP_CONVERT_HTON (reflectionAttr->diffuse, req->diffuse, fpFormat);
823
FP_CONVERT_HTON (reflectionAttr->specular, req->specular, fpFormat);
824
FP_CONVERT_HTON (reflectionAttr->specular_conc,
825
req->specularConc, fpFormat);
826
FP_CONVERT_HTON (reflectionAttr->transmission,
827
req->transmission, fpFormat);
831
req->ambient = reflectionAttr->ambient;
832
req->diffuse = reflectionAttr->diffuse;
833
req->specular = reflectionAttr->specular;
834
req->specularConc = reflectionAttr->specular_conc;
835
req->transmission = reflectionAttr->transmission;
838
req->specular_colorType = reflectionAttr->specular_color.type;
840
END_OC_HEADER (ReflectionAttributes, pBuf, req);
842
pBuf = PEXGetOCAddr (display, NUMBYTES (lenofColor));
843
STORE_COLOR_VAL (reflectionAttr->specular_color.type,
844
reflectionAttr->specular_color.value, pBuf, fpConvert, fpFormat);
846
PEXFinishOC (display);
847
PEXSyncHandle (display);
852
PEXSetReflectionModel (display, resource_id, req_type, model)
854
INPUT Display *display;
855
INPUT XID resource_id;
856
INPUT PEXOCRequestType req_type;
860
register pexReflectionModel *req;
862
BEGIN_SIMPLE_OC (ReflectionModel, resource_id, req_type, req);
863
req->reflectionModel = model;
864
END_SIMPLE_OC (ReflectionModel, resource_id, req_type, req);
869
PEXSetSurfaceInterpMethod (display, resource_id, req_type, method)
871
INPUT Display *display;
872
INPUT XID resource_id;
873
INPUT PEXOCRequestType req_type;
877
register pexSurfaceInterpMethod *req;
879
BEGIN_SIMPLE_OC (SurfaceInterpMethod, resource_id, req_type, req);
880
req->surfaceInterp = method;
881
END_SIMPLE_OC (SurfaceInterpMethod, resource_id, req_type, req);
886
PEXSetBFInteriorStyle (display, resource_id, req_type, style)
888
INPUT Display *display;
889
INPUT XID resource_id;
890
INPUT PEXOCRequestType req_type;
894
register pexBFInteriorStyle *req;
896
BEGIN_SIMPLE_OC (BFInteriorStyle, resource_id, req_type, req);
897
req->interiorStyle = style;
898
END_SIMPLE_OC (BFInteriorStyle, resource_id, req_type, req);
903
PEXSetBFInteriorStyleIndex (display, resource_id, req_type, index)
905
INPUT Display *display;
906
INPUT XID resource_id;
907
INPUT PEXOCRequestType req_type;
911
register pexBFInteriorStyleIndex *req;
913
BEGIN_SIMPLE_OC (BFInteriorStyleIndex, resource_id, req_type, req);
915
END_SIMPLE_OC (BFInteriorStyleIndex, resource_id, req_type, req);
920
PEXSetBFSurfaceColorIndex (display, resource_id, req_type, index)
922
INPUT Display *display;
923
INPUT XID resource_id;
924
INPUT PEXOCRequestType req_type;
925
INPUT unsigned int index;
928
register pexBFSurfaceColorIndex *req;
930
BEGIN_SIMPLE_OC (BFSurfaceColorIndex, resource_id, req_type, req);
932
END_SIMPLE_OC (BFSurfaceColorIndex, resource_id, req_type, req);
937
PEXSetBFSurfaceColor (display, resource_id, req_type, colorType, color)
939
INPUT Display *display;
940
INPUT XID resource_id;
941
INPUT PEXOCRequestType req_type;
943
INPUT PEXColor *color;
946
register pexBFSurfaceColor *req;
952
lenofColor = GetColorLength (colorType);
954
PEXInitOC (display, resource_id, req_type,
955
LENOF (pexBFSurfaceColor), lenofColor, pBuf);
957
if (pBuf == NULL) return;
959
CHECK_FP (fpConvert, fpFormat);
961
BEGIN_OC_HEADER (BFSurfaceColor, lenofColor, pBuf, req);
963
req->colorType = colorType;
965
END_OC_HEADER (BFSurfaceColor, pBuf, req);
967
pBuf = PEXGetOCAddr (display, NUMBYTES (lenofColor));
968
STORE_COLOR_VAL (colorType, (*color), pBuf, fpConvert, fpFormat);
970
PEXFinishOC (display);
971
PEXSyncHandle (display);
976
PEXSetBFReflectionAttributes (display, resource_id, req_type, reflectionAttr)
978
INPUT Display *display;
979
INPUT XID resource_id;
980
INPUT PEXOCRequestType req_type;
981
INPUT PEXReflectionAttributes *reflectionAttr;
984
register pexBFReflectionAttributes *req;
990
lenofColor = GetColorLength (reflectionAttr->specular_color.type);
992
PEXInitOC (display, resource_id, req_type,
993
LENOF (pexBFReflectionAttributes), lenofColor, pBuf);
995
if (pBuf == NULL) return;
997
CHECK_FP (fpConvert, fpFormat);
999
BEGIN_OC_HEADER (BFReflectionAttributes, lenofColor, pBuf, req);
1003
FP_CONVERT_HTON (reflectionAttr->ambient, req->ambient, fpFormat);
1004
FP_CONVERT_HTON (reflectionAttr->diffuse, req->diffuse, fpFormat);
1005
FP_CONVERT_HTON (reflectionAttr->specular, req->specular, fpFormat);
1006
FP_CONVERT_HTON (reflectionAttr->specular_conc,
1007
req->specularConc, fpFormat);
1008
FP_CONVERT_HTON (reflectionAttr->transmission,
1009
req->transmission, fpFormat);
1013
req->ambient = reflectionAttr->ambient;
1014
req->diffuse = reflectionAttr->diffuse;
1015
req->specular = reflectionAttr->specular;
1016
req->specularConc = reflectionAttr->specular_conc;
1017
req->transmission = reflectionAttr->transmission;
1020
req->specular_colorType = reflectionAttr->specular_color.type;
1022
END_OC_HEADER (BFReflectionAttributes, pBuf, req);
1024
pBuf = PEXGetOCAddr (display, NUMBYTES (lenofColor));
1025
STORE_COLOR_VAL (reflectionAttr->specular_color.type,
1026
reflectionAttr->specular_color.value, pBuf, fpConvert, fpFormat);
1028
PEXFinishOC (display);
1029
PEXSyncHandle (display);
1034
PEXSetBFReflectionModel (display, resource_id, req_type, model)
1036
INPUT Display *display;
1037
INPUT XID resource_id;
1038
INPUT PEXOCRequestType req_type;
1042
register pexBFReflectionModel *req;
1044
BEGIN_SIMPLE_OC (BFReflectionModel, resource_id, req_type, req);
1045
req->reflectionModel = model;
1046
END_SIMPLE_OC (BFReflectionModel, resource_id, req_type, req);
1051
PEXSetBFSurfaceInterpMethod (display, resource_id, req_type, method)
1053
INPUT Display *display;
1054
INPUT XID resource_id;
1055
INPUT PEXOCRequestType req_type;
1059
register pexBFSurfaceInterpMethod *req;
1061
BEGIN_SIMPLE_OC (BFSurfaceInterpMethod, resource_id, req_type, req);
1062
req->surfaceInterp = method;
1063
END_SIMPLE_OC (BFSurfaceInterpMethod, resource_id, req_type, req);
1068
PEXSetSurfaceApprox (display, resource_id, req_type,
1069
approxMethod, uTolerance, vTolerance)
1071
INPUT Display *display;
1072
INPUT XID resource_id;
1073
INPUT PEXOCRequestType req_type;
1074
INPUT int approxMethod;
1075
INPUT double uTolerance;
1076
INPUT double vTolerance;
1079
register pexSurfaceApprox *req;
1083
BEGIN_SIMPLE_OC (SurfaceApprox, resource_id, req_type, req);
1084
CHECK_FP (fpConvert, fpFormat);
1086
req->approxMethod = approxMethod;
1090
FP_CONVERT_DHTON (uTolerance, req->uTolerance, fpFormat);
1091
FP_CONVERT_DHTON (vTolerance, req->vTolerance, fpFormat);
1095
req->uTolerance = uTolerance;
1096
req->vTolerance = vTolerance;
1099
END_SIMPLE_OC (SurfaceApprox, resource_id, req_type, req);
1104
PEXSetFacetCullingMode (display, resource_id, req_type, mode)
1106
INPUT Display *display;
1107
INPUT XID resource_id;
1108
INPUT PEXOCRequestType req_type;
1112
register pexFacetCullingMode *req;
1114
BEGIN_SIMPLE_OC (FacetCullingMode, resource_id, req_type, req);
1115
req->cullMode = mode;
1116
END_SIMPLE_OC (FacetCullingMode, resource_id, req_type, req);
1121
PEXSetFacetDistinguishFlag (display, resource_id, req_type, flag)
1123
INPUT Display *display;
1124
INPUT XID resource_id;
1125
INPUT PEXOCRequestType req_type;
1129
register pexFacetDistinguishFlag *req;
1131
BEGIN_SIMPLE_OC (FacetDistinguishFlag, resource_id, req_type, req);
1132
req->distinguish = flag;
1133
END_SIMPLE_OC (FacetDistinguishFlag, resource_id, req_type, req);
1138
PEXSetPatternSize (display, resource_id, req_type, width, height)
1140
INPUT Display *display;
1141
INPUT XID resource_id;
1142
INPUT PEXOCRequestType req_type;
1144
INPUT double height;
1147
register pexPatternSize *req;
1151
BEGIN_SIMPLE_OC (PatternSize, resource_id, req_type, req);
1152
CHECK_FP (fpConvert, fpFormat);
1156
FP_CONVERT_DHTON (width, req->size_x, fpFormat);
1157
FP_CONVERT_DHTON (height, req->size_y, fpFormat);
1161
req->size_x = width;
1162
req->size_y = height;
1165
END_SIMPLE_OC (PatternSize, resource_id, req_type, req);
1170
PEXSetPatternAttributes2D (display, resource_id, req_type, ref_point)
1172
INPUT Display *display;
1173
INPUT XID resource_id;
1174
INPUT PEXOCRequestType req_type;
1175
INPUT PEXCoord2D *ref_point;
1178
register pexPatternAttributes2D *req;
1182
BEGIN_SIMPLE_OC (PatternAttributes2D, resource_id, req_type, req);
1183
CHECK_FP (fpConvert, fpFormat);
1187
FP_CONVERT_HTON (ref_point->x, req->point_x, fpFormat);
1188
FP_CONVERT_HTON (ref_point->y, req->point_y, fpFormat);
1192
req->point_x = ref_point->x;
1193
req->point_y = ref_point->y;
1196
END_SIMPLE_OC (PatternAttributes2D, resource_id, req_type, req);
1201
PEXSetPatternAttributes (display, resource_id, req_type, refPt, vec1, vec2)
1203
INPUT Display *display;
1204
INPUT XID resource_id;
1205
INPUT PEXOCRequestType req_type;
1206
INPUT PEXCoord *refPt;
1207
INPUT PEXVector *vec1;
1208
INPUT PEXVector *vec2;
1211
register pexPatternAttributes *req;
1215
BEGIN_SIMPLE_OC (PatternAttributes, resource_id, req_type, req);
1216
CHECK_FP (fpConvert, fpFormat);
1220
FP_CONVERT_HTON (refPt->x, req->refPt_x, fpFormat);
1221
FP_CONVERT_HTON (refPt->y, req->refPt_y, fpFormat);
1222
FP_CONVERT_HTON (refPt->z, req->refPt_z, fpFormat);
1223
FP_CONVERT_HTON (vec1->x, req->vector1_x, fpFormat);
1224
FP_CONVERT_HTON (vec1->y, req->vector1_y, fpFormat);
1225
FP_CONVERT_HTON (vec1->z, req->vector1_z, fpFormat);
1226
FP_CONVERT_HTON (vec2->x, req->vector2_x, fpFormat);
1227
FP_CONVERT_HTON (vec2->y, req->vector2_y, fpFormat);
1228
FP_CONVERT_HTON (vec2->z, req->vector2_z, fpFormat);
1232
req->refPt_x = refPt->x;
1233
req->refPt_y = refPt->y;
1234
req->refPt_z = refPt->z;
1235
req->vector1_x = vec1->x;
1236
req->vector1_y = vec1->y;
1237
req->vector1_z = vec1->z;
1238
req->vector2_x = vec2->x;
1239
req->vector2_y = vec2->y;
1240
req->vector2_z = vec2->z;
1243
END_SIMPLE_OC (PatternAttributes, resource_id, req_type, req);
1248
PEXSetInteriorBundleIndex (display, resource_id, req_type, index)
1250
INPUT Display *display;
1251
INPUT XID resource_id;
1252
INPUT PEXOCRequestType req_type;
1253
INPUT unsigned int index;
1256
register pexInteriorBundleIndex *req;
1258
BEGIN_SIMPLE_OC (InteriorBundleIndex, resource_id, req_type, req);
1260
END_SIMPLE_OC (InteriorBundleIndex, resource_id, req_type, req);
1265
PEXSetSurfaceEdgeFlag (display, resource_id, req_type, flag)
1267
INPUT Display *display;
1268
INPUT XID resource_id;
1269
INPUT PEXOCRequestType req_type;
1273
register pexSurfaceEdgeFlag *req;
1275
BEGIN_SIMPLE_OC (SurfaceEdgeFlag, resource_id, req_type, req);
1277
END_SIMPLE_OC (SurfaceEdgeFlag, resource_id, req_type, req);
1282
PEXSetSurfaceEdgeType (display, resource_id, req_type, type)
1284
INPUT Display *display;
1285
INPUT XID resource_id;
1286
INPUT PEXOCRequestType req_type;
1290
register pexSurfaceEdgeType *req;
1292
BEGIN_SIMPLE_OC (SurfaceEdgeType, resource_id, req_type, req);
1293
req->edgeType = type;
1294
END_SIMPLE_OC (SurfaceEdgeType, resource_id, req_type, req);
1299
PEXSetSurfaceEdgeWidth (display, resource_id, req_type, width)
1301
INPUT Display *display;
1302
INPUT XID resource_id;
1303
INPUT PEXOCRequestType req_type;
1307
register pexSurfaceEdgeWidth *req;
1311
BEGIN_SIMPLE_OC (SurfaceEdgeWidth, resource_id, req_type, req);
1312
CHECK_FP (fpConvert, fpFormat);
1316
FP_CONVERT_DHTON (width, req->width, fpFormat);
1321
END_SIMPLE_OC (SurfaceEdgeWidth, resource_id, req_type, req);
1326
PEXSetSurfaceEdgeColorIndex (display, resource_id, req_type, index)
1328
INPUT Display *display;
1329
INPUT XID resource_id;
1330
INPUT PEXOCRequestType req_type;
1331
INPUT unsigned int index;
1334
register pexSurfaceEdgeColorIndex *req;
1336
BEGIN_SIMPLE_OC (SurfaceEdgeColorIndex, resource_id, req_type, req);
1338
END_SIMPLE_OC (SurfaceEdgeColorIndex, resource_id, req_type, req);
1343
PEXSetSurfaceEdgeColor (display, resource_id, req_type, colorType, color)
1345
INPUT Display *display;
1346
INPUT XID resource_id;
1347
INPUT PEXOCRequestType req_type;
1348
INPUT int colorType;
1349
INPUT PEXColor *color;
1352
register pexSurfaceEdgeColor *req;
1358
lenofColor = GetColorLength (colorType);
1360
PEXInitOC (display, resource_id, req_type,
1361
LENOF (pexSurfaceEdgeColor), lenofColor, pBuf);
1363
if (pBuf == NULL) return;
1365
CHECK_FP (fpConvert, fpFormat);
1367
BEGIN_OC_HEADER (SurfaceEdgeColor, lenofColor, pBuf, req);
1369
req->colorType = colorType;
1371
END_OC_HEADER (SurfaceEdgeColor, pBuf, req);
1373
pBuf = PEXGetOCAddr (display, NUMBYTES (lenofColor));
1374
STORE_COLOR_VAL (colorType, (*color), pBuf, fpConvert, fpFormat);
1376
PEXFinishOC (display);
1377
PEXSyncHandle (display);
1382
PEXSetEdgeBundleIndex (display, resource_id, req_type, index)
1384
INPUT Display *display;
1385
INPUT XID resource_id;
1386
INPUT PEXOCRequestType req_type;
1387
INPUT unsigned int index;
1390
register pexEdgeBundleIndex *req;
1392
BEGIN_SIMPLE_OC (EdgeBundleIndex, resource_id, req_type, req);
1394
END_SIMPLE_OC (EdgeBundleIndex, resource_id, req_type, req);
1399
PEXSetIndividualASF (display, resource_id, req_type, attribute, value)
1401
INPUT Display *display;
1402
INPUT XID resource_id;
1403
INPUT PEXOCRequestType req_type;
1404
INPUT unsigned long attribute;
1408
register pexIndividualASF *req;
1410
BEGIN_SIMPLE_OC (IndividualASF, resource_id, req_type, req);
1411
req->attribute = attribute;
1412
req->source = value;
1413
END_SIMPLE_OC (IndividualASF, resource_id, req_type, req);
1418
PEXSetLocalTransform (display, resource_id, req_type, compType, transform)
1420
INPUT Display *display;
1421
INPUT XID resource_id;
1422
INPUT PEXOCRequestType req_type;
1424
INPUT PEXMatrix transform;
1427
register pexLocalTransform *req;
1432
BEGIN_SIMPLE_OC (LocalTransform, resource_id, req_type, req);
1433
CHECK_FP (fpConvert, fpFormat);
1435
req->compType = compType;
1437
ptr = (char *) req->matrix;
1438
STORE_LISTOF_FLOAT32 (16, transform, ptr, fpConvert, fpFormat);
1440
END_SIMPLE_OC (LocalTransform, resource_id, req_type, req);
1445
PEXSetLocalTransform2D (display, resource_id, req_type, compType, transform)
1447
INPUT Display *display;
1448
INPUT XID resource_id;
1449
INPUT PEXOCRequestType req_type;
1451
INPUT PEXMatrix3x3 transform;
1454
register pexLocalTransform2D *req;
1459
BEGIN_SIMPLE_OC (LocalTransform2D, resource_id, req_type, req);
1460
CHECK_FP (fpConvert, fpFormat);
1462
req->compType = compType;
1464
ptr = (char *) req->matrix3X3;
1465
STORE_LISTOF_FLOAT32 (9, transform, ptr, fpConvert, fpFormat);
1467
END_SIMPLE_OC (LocalTransform2D, resource_id, req_type, req);
1472
PEXSetGlobalTransform (display, resource_id, req_type, transform)
1474
INPUT Display *display;
1475
INPUT XID resource_id;
1476
INPUT PEXOCRequestType req_type;
1477
INPUT PEXMatrix transform;
1480
register pexGlobalTransform *req;
1485
BEGIN_SIMPLE_OC (GlobalTransform, resource_id, req_type, req);
1486
CHECK_FP (fpConvert, fpFormat);
1488
ptr = (char *) req->matrix;
1489
STORE_LISTOF_FLOAT32 (16, transform, ptr, fpConvert, fpFormat);
1491
END_SIMPLE_OC (GlobalTransform, resource_id, req_type, req);
1496
PEXSetGlobalTransform2D (display, resource_id, req_type, transform)
1498
INPUT Display *display;
1499
INPUT XID resource_id;
1500
INPUT PEXOCRequestType req_type;
1501
INPUT PEXMatrix3x3 transform;
1504
register pexGlobalTransform2D *req;
1509
BEGIN_SIMPLE_OC (GlobalTransform2D, resource_id, req_type, req);
1510
CHECK_FP (fpConvert, fpFormat);
1512
ptr = (char *) req->matrix3X3;
1513
STORE_LISTOF_FLOAT32 (9, transform, ptr, fpConvert, fpFormat);
1515
END_SIMPLE_OC (GlobalTransform2D, resource_id, req_type, req);
1520
PEXSetModelClipFlag (display, resource_id, req_type, flag)
1522
INPUT Display *display;
1523
INPUT XID resource_id;
1524
INPUT PEXOCRequestType req_type;
1528
register pexModelClipFlag *req;
1530
BEGIN_SIMPLE_OC (ModelClipFlag, resource_id, req_type, req);
1532
END_SIMPLE_OC (ModelClipFlag, resource_id, req_type, req);
1537
PEXSetModelClipVolume (display, resource_id, req_type, op,
1538
numHalfSpaces, halfSpaces)
1540
INPUT Display *display;
1541
INPUT XID resource_id;
1542
INPUT PEXOCRequestType req_type;
1544
INPUT unsigned int numHalfSpaces;
1545
INPUT PEXHalfSpace *halfSpaces;
1548
register pexModelClipVolume *req;
1555
* Initialize the OC request.
1558
dataLength = NUMWORDS (numHalfSpaces * SIZEOF (pexHalfSpace));
1560
PEXInitOC (display, resource_id, req_type,
1561
LENOF (pexModelClipVolume), dataLength, pBuf);
1563
if (pBuf == NULL) return;
1567
* Store the request header data.
1570
CHECK_FP (fpConvert, fpFormat);
1572
BEGIN_OC_HEADER (ModelClipVolume, dataLength, pBuf, req);
1574
req->modelClipOperator = op;
1575
req->numHalfSpaces = numHalfSpaces;
1577
END_OC_HEADER (ModelClipVolume, pBuf, req);
1584
OC_LISTOF_HALFSPACE3D (numHalfSpaces, halfSpaces, fpConvert, fpFormat);
1586
PEXFinishOC (display);
1587
PEXSyncHandle (display);
1592
PEXSetModelClipVolume2D (display, resource_id, req_type, op,
1593
numHalfSpaces, halfSpaces)
1595
INPUT Display *display;
1596
INPUT XID resource_id;
1597
INPUT PEXOCRequestType req_type;
1599
INPUT unsigned int numHalfSpaces;
1600
INPUT PEXHalfSpace2D *halfSpaces;
1603
register pexModelClipVolume2D *req;
1610
* Initialize the OC request.
1613
dataLength = NUMWORDS (numHalfSpaces * SIZEOF (pexHalfSpace2D));
1615
PEXInitOC (display, resource_id, req_type,
1616
LENOF (pexModelClipVolume2D), dataLength, pBuf);
1618
if (pBuf == NULL) return;
1622
* Store the request header data.
1625
CHECK_FP (fpConvert, fpFormat);
1627
BEGIN_OC_HEADER (ModelClipVolume2D, dataLength, pBuf, req);
1629
req->modelClipOperator = op;
1630
req->numHalfSpaces = numHalfSpaces;
1632
END_OC_HEADER (ModelClipVolume2D, pBuf, req);
1639
OC_LISTOF_HALFSPACE2D (numHalfSpaces, halfSpaces, fpConvert, fpFormat);
1641
PEXFinishOC (display);
1642
PEXSyncHandle (display);
1647
PEXRestoreModelClipVolume (display, resource_id, req_type)
1649
INPUT Display *display;
1650
INPUT XID resource_id;
1651
INPUT PEXOCRequestType req_type;
1654
register pexRestoreModelClipVolume *req;
1656
BEGIN_SIMPLE_OC (RestoreModelClipVolume, resource_id, req_type, req);
1658
END_SIMPLE_OC (RestoreModelClipVolume, resource_id, req_type, req);
1663
PEXSetViewIndex (display, resource_id, req_type, index)
1665
INPUT Display *display;
1666
INPUT XID resource_id;
1667
INPUT PEXOCRequestType req_type;
1668
INPUT unsigned int index;
1671
register pexViewIndex *req;
1673
BEGIN_SIMPLE_OC (ViewIndex, resource_id, req_type, req);
1675
END_SIMPLE_OC (ViewIndex, resource_id, req_type, req);
1680
PEXSetLightSourceState (display, resource_id, req_type,
1681
numEnable, enable, numDisable, disable)
1683
INPUT Display *display;
1684
INPUT XID resource_id;
1685
INPUT PEXOCRequestType req_type;
1686
INPUT unsigned int numEnable;
1687
INPUT PEXTableIndex *enable;
1688
INPUT unsigned int numDisable;
1689
INPUT PEXTableIndex *disable;
1692
register pexLightSourceState *req;
1697
* Initialize the OC request.
1700
dataLength = NUMWORDS (numEnable * SIZEOF (CARD16)) +
1701
NUMWORDS (numDisable * SIZEOF (CARD16));
1703
PEXInitOC (display, resource_id, req_type,
1704
LENOF (pexLightSourceState), dataLength, pBuf);
1706
if (pBuf == NULL) return;
1710
* Store the request header data.
1713
BEGIN_OC_HEADER (LightSourceState, dataLength, pBuf, req);
1715
req->numEnable = numEnable;
1716
req->numDisable = numDisable;
1718
END_OC_HEADER (LightSourceState, pBuf, req);
1725
OC_LISTOF_CARD16_PAD (numEnable, enable);
1726
OC_LISTOF_CARD16_PAD (numDisable, disable);
1729
PEXFinishOC (display);
1730
PEXSyncHandle (display);
1735
PEXSetDepthCueIndex (display, resource_id, req_type, index)
1737
INPUT Display *display;
1738
INPUT XID resource_id;
1739
INPUT PEXOCRequestType req_type;
1740
INPUT unsigned int index;
1743
register pexDepthCueIndex *req;
1745
BEGIN_SIMPLE_OC (DepthCueIndex, resource_id, req_type, req);
1747
END_SIMPLE_OC (DepthCueIndex, resource_id, req_type, req);
1752
PEXSetPickID (display, resource_id, req_type, id)
1754
INPUT Display *display;
1755
INPUT XID resource_id;
1756
INPUT PEXOCRequestType req_type;
1757
INPUT unsigned long id;
1760
register pexPickID *req;
1762
BEGIN_SIMPLE_OC (PickID, resource_id, req_type, req);
1764
END_SIMPLE_OC (PickID, resource_id, req_type, req);
1769
PEXSetHLHSRID (display, resource_id, req_type, id)
1771
INPUT Display *display;
1772
INPUT XID resource_id;
1773
INPUT PEXOCRequestType req_type;
1774
INPUT unsigned long id;
1777
register pexHLHSRID *req;
1779
BEGIN_SIMPLE_OC (HLHSRID, resource_id, req_type, req);
1781
END_SIMPLE_OC (HLHSRID, resource_id, req_type, req);
1786
PEXSetColorApproxIndex (display, resource_id, req_type, index)
1788
INPUT Display *display;
1789
INPUT XID resource_id;
1790
INPUT PEXOCRequestType req_type;
1791
INPUT unsigned int index;
1794
register pexColorApproxIndex *req;
1796
BEGIN_SIMPLE_OC (ColorApproxIndex, resource_id, req_type, req);
1798
END_SIMPLE_OC (ColorApproxIndex, resource_id, req_type, req);
1803
PEXSetParaSurfCharacteristics (display, resource_id, req_type,
1806
INPUT Display *display;
1807
INPUT XID resource_id;
1808
INPUT PEXOCRequestType req_type;
1810
INPUT PEXPSCData *pscData;
1813
register pexParaSurfCharacteristics *req;
1820
* Initialize the OC request.
1823
if (pscType == PEXPSCIsoCurves)
1825
dataLength = LENOF (pexPSC_IsoparametricCurves);
1827
else if (pscType == PEXPSCMCLevelCurves || pscType == PEXPSCWCLevelCurves)
1829
dataLength = NUMWORDS (SIZEOF (pexPSC_LevelCurves) +
1830
(pscData->level_curves.count * SIZEOF (float)));
1833
PEXInitOC (display, resource_id, req_type,
1834
LENOF (pexParaSurfCharacteristics), dataLength, pBuf);
1836
if (pBuf == NULL) return;
1840
* Store the request header data.
1843
CHECK_FP (fpConvert, fpFormat);
1845
BEGIN_OC_HEADER (ParaSurfCharacteristics, dataLength, pBuf, req);
1847
req->characteristics = pscType;
1848
req->length = NUMBYTES (dataLength);
1850
END_OC_HEADER (ParaSurfCharacteristics, pBuf, req);
1857
if ((pBuf = PEXGetOCAddr (display, req->length)))
1859
if (pscType == PEXPSCIsoCurves)
1861
STORE_PSC_ISOCURVES (pscData->iso_curves, pBuf);
1863
else if (pscType == PEXPSCMCLevelCurves ||
1864
pscType == PEXPSCWCLevelCurves)
1866
STORE_PSC_LEVELCURVES (pscData->level_curves, pBuf,
1867
fpConvert, fpFormat);
1869
STORE_LISTOF_FLOAT32 (pscData->level_curves.count,
1870
pscData->level_curves.parameters, pBuf, fpConvert, fpFormat);
1874
PEXFinishOC (display);
1875
PEXSyncHandle (display);
1880
PEXSetRenderingColorModel (display, resource_id, req_type, model)
1882
INPUT Display *display;
1883
INPUT XID resource_id;
1884
INPUT PEXOCRequestType req_type;
1888
register pexRenderingColorModel *req;
1890
BEGIN_SIMPLE_OC (RenderingColorModel, resource_id, req_type, req);
1892
END_SIMPLE_OC (RenderingColorModel, resource_id, req_type, req);
1897
PEXAddToNameSet (display, resource_id, req_type, numNames, names)
1899
INPUT Display *display;
1900
INPUT XID resource_id;
1901
INPUT PEXOCRequestType req_type;
1902
INPUT unsigned long numNames;
1903
INPUT PEXName *names;
1906
register pexAddToNameSet *req;
1911
* Initialize the OC request.
1914
dataLength = NUMWORDS (numNames * SIZEOF (pexName));
1916
PEXInitOC (display, resource_id, req_type,
1917
LENOF (pexAddToNameSet), dataLength, pBuf);
1919
if (pBuf == NULL) return;
1923
* Store the request header data.
1926
BEGIN_OC_HEADER (AddToNameSet, dataLength, pBuf, req);
1927
END_OC_HEADER (AddToNameSet, pBuf, req);
1934
OC_LISTOF_CARD32 (numNames, names);
1936
PEXFinishOC (display);
1937
PEXSyncHandle (display);
1942
PEXRemoveFromNameSet (display, resource_id, req_type, numNames, names)
1944
INPUT Display *display;
1945
INPUT XID resource_id;
1946
INPUT PEXOCRequestType req_type;
1947
INPUT unsigned long numNames;
1948
INPUT PEXName *names;
1951
register pexRemoveFromNameSet *req;
1956
* Initialize the OC request.
1959
dataLength = NUMWORDS (numNames * SIZEOF (pexName));
1961
PEXInitOC (display, resource_id, req_type,
1962
LENOF (pexRemoveFromNameSet), dataLength, pBuf);
1964
if (pBuf == NULL) return;
1968
* Store the request header data.
1971
BEGIN_OC_HEADER (RemoveFromNameSet, dataLength, pBuf, req);
1972
END_OC_HEADER (RemoveFromNameSet, pBuf, req);
1979
OC_LISTOF_CARD32 (numNames, names);
1981
PEXFinishOC (display);
1982
PEXSyncHandle (display);