forked from CERN/OpenPHIGS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphigs.h
More file actions
4187 lines (3542 loc) · 87.4 KB
/
phigs.h
File metadata and controls
4187 lines (3542 loc) · 87.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/***********************************************************
Copyright (c) 1989, 1990, 1991 X Consortium
Copyright (c) 2014 Surplus Users Ham Society
Copyright (c) 2022-2023 CERN
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of the X Consortium shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from the X Consortium.
Copyright 1989, 1990, 1991 by Sun Microsystems, Inc.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Sun Microsystems,
not be used in advertising or publicity pertaining to distribution of
the software without specific, written prior permission.
SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
******************************************************************/
#ifndef _phigs_h
#define _phigs_h
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Max name length */
#define PHIGS_MAX_NAME_LEN 255
/* Line types */
#define PLINE_SOLID 1
#define PLINE_DASH 2
#define PLINE_DOT 3
#define PLINE_DASH_DOT 4
/* Marker types */
#define PMARKER_DOT 1
#define PMARKER_PLUS 2
#define PMARKER_ASTERISK 3
#define PMARKER_CIRCLE 4
#define PMARKER_CROSS 5
#define PMARKER_TRIANG 6
#define PMARKER_SQUARE 7
#define PMARKER_PENTAGON 8
#define PMARKER_HEXAGON 9
/* Color model */
#define PINDIRECT 0
#define PMODEL_RGB 1
/* HLHSR constants */
#define PHIGS_HLHSR_MODE_NONE 0
#define PHIGS_HLHSR_MODE_ZBUFF 1
#define PHIGS_HLHSR_ID_OFF 0
#define PHIGS_HLHSR_ID_ON 1
/* Facet data flags */
#define PFACET_NONE 0
#define PFACET_COLOUR 1
#define PFACET_NORMAL 2
#define PFACET_COLOUR_NORMAL 3
/* Edge data flags */
#define PEDGE_NONE 0
#define PEDGE_VISIBILITY 1
/* Vertex data flags */
#define PVERT_COORD 0
#define PVERT_COORD_COLOUR 1
#define PVERT_COORD_NORMAL 2
#define PVERT_COORD_COLOUR_NORMAL 3
/* Shading methods */
#define PSD_NONE 1
#define PSD_COLOUR 2
/* Surface reflection */
#define PREFL_NONE 1
#define PREFL_AMBIENT 2
#define PREFL_AMB_DIFF 3
#define PREFL_AMB_DIFF_SPEC 4
/* Light source types */
#define PLIGHT_AMBIENT 1
#define PLIGHT_DIRECTIONAL 2
#define PLIGHT_POSITIONAL 3
#define PLIGHT_SPOT 4
/* PHIGS states */
typedef enum {
PSYS_ST_PHCL,
PSYS_ST_PHOP
} Psys_st;
typedef enum {
PWS_ST_WSCL,
PWS_ST_WSOP
} Pws_st;
typedef enum {
PSTRUCT_ST_STCL,
PSTRUCT_ST_STOP
} Pstruct_st;
/* Archive releated */
typedef enum {
PST_ARCL,
PST_AROP
} Par_st;
typedef enum {
PNET_CSS,
PNET_AR
} Pstruct_net_source;
/* Workstation related */
typedef enum {
PCLASS_VEC,
PCLASS_RASTER,
PCLASS_OTHER
} Pws_class;
typedef enum {
PCAT_OUT,
PCAT_IN,
PCAT_OUTIN,
PCAT_MO,
PCAT_MI,
PCAT_TGA,
PCAT_PNG,
PCAT_PNGA,
PCAT_EPS,
PCAT_PDF,
PCAT_SVG
} Pws_cat;
typedef enum {
PELEM_ALL,
PELEM_NIL,
PELEM_ADD_NAMES_SET,
PELEM_REMOVE_NAMES_SET,
PELEM_FILL_AREA,
PELEM_FILL_AREA3,
PELEM_FILL_AREA_SET,
PELEM_FILL_AREA_SET3,
PELEM_FILL_AREA_SET3_DATA,
PELEM_SET_OF_FILL_AREA_SET3_DATA,
PELEM_POLYLINE,
PELEM_POLYLINE3,
PELEM_POLYMARKER,
PELEM_POLYMARKER3,
PELEM_TEXT,
PELEM_INT_IND,
PELEM_INT_COLR_IND,
PELEM_INT_STYLE,
PELEM_BACK_INT_STYLE,
PELEM_INT_STYLE_IND,
PELEM_BACK_INT_STYLE_IND,
PELEM_LINE_COLR_IND,
PELEM_LINEWIDTH,
PELEM_LINETYPE,
PELEM_LINE_IND,
PELEM_MARKER_IND,
PELEM_MARKER_COLR_IND,
PELEM_MARKER_SIZE,
PELEM_MARKER_TYPE,
PELEM_EDGE_IND,
PELEM_EDGE_COLR_IND,
PELEM_EDGEWIDTH,
PELEM_EDGETYPE,
PELEM_EDGE_FLAG,
PELEM_TEXT_IND,
PELEM_TEXT_FONT,
PELEM_TEXT_PREC,
PELEM_TEXT_PATH,
PELEM_TEXT_ALIGN,
PELEM_CHAR_HT,
PELEM_CHAR_EXPAN,
PELEM_CHAR_SPACE,
PELEM_CHAR_UP_VEC,
PELEM_TEXT_COLR_IND,
PELEM_INDIV_ASF,
PELEM_LOCAL_MODEL_TRAN3,
PELEM_GLOBAL_MODEL_TRAN3,
PELEM_VIEW_IND,
PELEM_EXEC_STRUCT,
PELEM_LABEL,
PELEM_PICK_ID,
PELEM_HLHSR_ID,
PELEM_INT_COLR,
PELEM_BACK_INT_COLR,
PELEM_LINE_COLR,
PELEM_MARKER_COLR,
PELEM_EDGE_COLR,
PELEM_TEXT_COLR,
PELEM_LIGHT_SRC_STATE,
PELEM_INT_SHAD_METH,
PELEM_BACK_INT_SHAD_METH,
PELEM_INT_REFL_EQN,
PELEM_BACK_INT_REFL_EQN,
PELEM_REFL_PROPS,
PELEM_BACK_REFL_PROPS,
PELEM_FACE_DISTING_MODE,
PELEM_FACE_CULL_MODE,
PELEM_ANNO_TEXT_REL3,
PELEM_ANNO_TEXT_REL,
PELEM_ANNO_CHAR_HT,
PELEM_ANNO_CHAR_UP_VEC,
PELEM_ANNO_PATH,
PELEM_ANNO_ALIGN,
PELEM_ANNO_STYLE,
PELEM_MODEL_CLIP_VOL3,
PELEM_MODEL_CLIP_IND,
PELEM_FILL_AREA_SET_DATA,
PELEM_GSE,
PELEM_ALPHA_CHANNEL,
PELEM_TEXT3,
PELEM_NUM_EL_TYPES
} Pelem_type;
typedef enum {
PGSE_ID_NO_OPERATION,
PGSE_ID_HIGHLIGHT_COLOR
} Pgse_type;
typedef enum {
PDIR_BACKWARD,
PDIR_FORWARD
} Psearch_dir;
typedef enum {
PSEARCH_STATUS_FAILURE,
PSEARCH_STATUS_SUCCESS
} Psearch_status;
typedef enum {
PEDIT_INSERT,
PEDIT_REPLACE
} Pedit_mode;
typedef enum {
PFLAG_DEL,
PFLAG_KEEP
} Pref_flag;
typedef enum {
PERR_OFF,
PERR_ON
} Perr_mode;
typedef enum {
PSTRUCT_NONE,
PSTRUCT_OPEN
} Popen_struct_status;
typedef enum {
PSTRUCT_STATUS_NON_EXISTENT,
PSTRUCT_STATUS_EMPTY,
PSTRUCT_STATUS_NOT_EMPTY
} Pstruct_status;
typedef enum {
PORDER_TOP_FIRST,
PORDER_BOTTOM_FIRST
} Ppath_order;
typedef enum {
PEDGE_OFF,
PEDGE_ON
} Pedge_flag;
typedef enum {
PSTYLE_EMPTY,
PSTYLE_HOLLOW,
PSTYLE_SOLID,
PSTYLE_HATCH
} Pint_style;
typedef enum {
PTYPE_PRECONCAT,
PTYPE_POSTCONCAT,
PTYPE_REPLACE
} Pcompose_type;
typedef enum {
PDISTING_NO,
PDISTING_YES
} Pdisting_mode;
typedef enum {
PCULL_NONE,
PCULL_BACKFACE,
PCULL_FRONTFACE
} Pcull_mode;
typedef enum {
PFLAG_COND,
PFLAG_ALWAYS
} Pctrl_flag;
typedef enum {
PFLAG_POSTPONE,
PFLAG_PERFORM
} Pregen_flag;
typedef enum {
PIND_NO_CLIP,
PIND_CLIP
} Pclip_ind;
typedef enum {
PPRI_HIGHER,
PPRI_LOWER
} Prel_pri;
typedef enum {
PRES_MAINTAIN,
PRES_ABANDON,
PRES_UPD
} Pconf_res;
typedef enum {
PVISUAL_ST_CORRECT,
PVISUAL_ST_DEFER,
PVISUAL_ST_SIMULATED
} Pvisual_st;
typedef enum {
PSURF_NOT_EMPTY,
PSURF_EMPTY
} Pdisp_surf_empty;
typedef enum {
PDEFER_ASAP,
PDEFER_BNIG,
PDEFER_BNIL,
PDEFER_ASTI,
PDEFER_WAIT
} Pdefer_mode;
typedef enum {
PMODE_NIVE,
PMODE_UWOR,
PMODE_UQUM
} Pmod_mode;
typedef enum {
PUPD_NOT_PEND,
PUPD_PEND
} Pupd_st;
typedef enum {
PINQ_SET,
PINQ_REALIZED
} Pinq_type;
typedef enum {
PTYPE_PARAL,
PTYPE_PERSPECT
} Pproj_type;
typedef enum {
PASF_BUNDLED,
PASF_INDIV
} Pasf;
typedef enum {
PASPECT_LINETYPE,
PASPECT_LINEWIDTH,
PASPECT_LINE_COLR_IND,
PASPECT_MARKER_TYPE,
PASPECT_MARKER_SIZE,
PASPECT_MARKER_COLR_IND,
PASPECT_TEXT_FONT,
PASPECT_TEXT_PREC,
PASPECT_CHAR_EXPAN,
PASPECT_CHAR_SPACE,
PASPECT_TEXT_COLR_IND,
PASPECT_INT_STYLE,
PASPECT_INT_STYLE_IND,
PASPECT_INT_COLR_IND,
PASPECT_EDGE_FLAG,
PASPECT_EDGETYPE,
PASPECT_EDGEWIDTH,
PASPECT_EDGE_COLR_IND,
PASPECT_INT_SHAD_METH,
PASPECT_REFL_PROPS,
PASPECT_INT_REFL_EQN,
PASPECT_BACK_INT_STYLE,
PASPECT_BACK_INT_STYLE_IND,
PASPECT_BACK_INT_COLR,
PASPECT_BACK_INT_SHAD_METH,
PASPECT_BACK_REFL_PROPS,
PASPECT_BACK_INT_REFL_EQN
} Paspect;
typedef enum {
PFLAG_LINE,
PFLAG_FILL,
PFLAG_FILL_SET
} Pline_fill_ctrl_flag;
typedef enum {
PREC_STRING,
PREC_CHAR,
PREC_STROKE
} Ptext_prec;
typedef enum {
PPATH_RIGHT,
PPATH_LEFT,
PPATH_UP,
PPATH_DOWN
} Ptext_path;
typedef enum {
PHOR_NORM,
PHOR_LEFT,
PHOR_CTR,
PHOR_RIGHT
} Phor_text_align;
typedef enum {
PVERT_NORM,
PVERT_TOP,
PVERT_CAP,
PVERT_HALF,
PVERT_BASE,
PVERT_BOTTOM
} Pvert_text_align;
typedef enum {
PPR_OFF,
PPR_ON
} Ppr_switch;
typedef enum {
PDC_METRES,
PDC_OTHER
} Pdc_units;
typedef enum {
PIN_STATUS_NONE,
PIN_STATUS_OK,
PIN_STATUS_NO_IN
} Pin_status;
typedef enum {
PIN_NONE,
PIN_LOC,
PIN_STROKE,
PIN_VAL,
PIN_CHOICE,
PIN_PICK,
PIN_STRING
} Pin_class;
typedef enum {
POP_REQ,
POP_SAMPLE,
POP_EVENT
} Pop_mode;
typedef enum {
PSWITCH_NO_ECHO,
PSWITCH_ECHO
} Pecho_switch;
struct _Pstore;
typedef struct _Pstore *Pstore;
typedef int Pint;
typedef long Plong;
typedef float Pfloat;
typedef Pfloat Pmatrix3[4][4];
typedef Pfloat Pmatrix[3][3];
typedef struct {
Pint num_elem_types;
Pelem_type *elem_types;
} Pelem_type_list;
typedef struct {
Pint struct_id;
Pint elem_pos;
} Pelem_ref;
typedef struct {
Pint num_elem_refs;
Pelem_ref *elem_refs;
} Pelem_ref_list;
typedef struct {
Pint type;
union {
Pint ind;
struct {
Pfloat x;
Pfloat y;
Pfloat z;
} general;
} val;
} Pgcolr;
typedef union {
struct Pgse_0 {
Pint noop;
} noop;
struct Pgse_1 {
Pgcolr highlight_colr;
} colr;
} Pgse_data;
typedef struct {
Pgse_type gse_type;
Pint gse_size;
Pgse_data gse_data;
} Pgse_elem;
typedef struct {
Pint num_ints;
Pint *ints;
} Pint_list;
typedef struct {
Pint num_lists;
Pint_list *lists;
} Pint_list_list;
typedef struct {
Pfloat x;
Pfloat y;
} Ppoint;
typedef struct {
Pfloat x;
Pfloat y;
Pfloat z;
} Ppoint3;
typedef struct {
Pfloat x;
Pfloat y;
Pfloat z;
Pfloat w;
} Ppoint4;
typedef struct {
Pfloat delta_x;
Pfloat delta_y;
} Pvec;
typedef struct {
Pfloat delta_x;
Pfloat delta_y;
Pfloat delta_z;
} Pvec3;
typedef struct {
Ppoint p;
Ppoint q;
} Prect;
typedef struct {
Pfloat x_min, x_max;
Pfloat y_min, y_max;
} Plimit;
typedef struct {
Pfloat x_min, x_max;
Pfloat y_min, y_max;
Pfloat z_min, z_max;
} Plimit3;
typedef struct {
Pint num_points;
Ppoint *points;
} Ppoint_list;
typedef struct {
Pint num_points;
Ppoint3 *points;
} Ppoint_list3;
typedef struct {
Pint num_point_lists;
Ppoint_list *point_lists;
} Ppoint_list_list;
typedef struct {
Pint num_point_lists;
Ppoint_list3 *point_lists;
} Ppoint_list_list3;
typedef struct {
Pint type;
Pfloat width;
Pint colr_ind;
} Pline_bundle;
typedef struct {
Pint type;
Pfloat width;
Pgcolr colr;
} Pline_bundle_plus;
typedef struct {
Pint type;
Pfloat size;
Pint colr_ind;
} Pmarker_bundle;
typedef struct {
Pint type;
Pfloat size;
Pgcolr colr;
} Pmarker_bundle_plus;
typedef struct {
Pedge_flag flag;
Pint type;
Pfloat width;
Pint colr_ind;
} Pedge_bundle;
typedef struct {
Pedge_flag flag;
Pint type;
Pfloat width;
Pgcolr colr;
} Pedge_bundle_plus;
typedef struct {
Pint_style style;
Pint style_ind;
Pint colr_ind;
} Pint_bundle;
typedef struct {
Pfloat ambient_coef;
Pfloat diffuse_coef;
Pfloat specular_coef;
Pgcolr specular_colr;
Pfloat specular_exp;
} Prefl_props;
typedef struct {
Pint_style style;
Pint style_ind;
Pgcolr colr;
Pint refl_eqn;
Pint shad_meth;
Prefl_props refl_props;
Pint_style back_style;
Pint back_style_ind;
Pgcolr back_colr;
Pint back_refl_eqn;
Pint back_shad_meth;
Prefl_props back_refl_props;
} Pint_bundle_plus;
typedef struct {
Pint font;
Ptext_prec prec;
Pfloat char_expan;
Pfloat char_space;
Pint colr_ind;
} Ptext_bundle;
typedef struct {
Pint font;
Ptext_prec prec;
Pfloat char_expan;
Pfloat char_space;
Pgcolr colr;
} Ptext_bundle_plus;
typedef struct {
Paspect id;
Pasf source;
} Pasf_info;
typedef struct {
Phor_text_align hor;
Pvert_text_align vert;
} Ptext_align;
typedef struct {
Ppoint pos;
char *char_string;
} Ptext;
typedef struct {
Ppoint3 pos;
Pvec3 plane[2];
char *char_string;
} Ptext3;
typedef struct {
Pcompose_type compose_type;
Pmatrix matrix;
} Plocal_tran;
typedef struct {
Pcompose_type compose_type;
Pmatrix3 matrix;
} Plocal_tran3;
typedef struct {
Pmatrix3 ori_matrix;
Pmatrix3 map_matrix;
Plimit3 clip_limit;
Pclip_ind xy_clip;
Pclip_ind back_clip;
Pclip_ind front_clip;
} Pview_rep3;
typedef struct {
Pfloat red;
Pfloat green;
Pfloat blue;
} Prgb;
typedef struct {
Pfloat hue;
Pfloat satur;
Pfloat value;
} Phsv;
typedef union {
Prgb rgb;
Phsv hsv;
} Pcolr_rep;
typedef union {
Pint ind;
Pcolr_rep direct;
} Pcoval;
typedef struct {
Pcoval colr;
Pvec3 norm;
} Pconorm3;
typedef union {
Pcoval colr;
Pvec3 norm;
Pconorm3 conorm;
} Pfacet_data3;
typedef union {
Pcoval *colrs;
Pvec3 *norms;
Pconorm3 *conorms;
} Pfacet_data_arr3;
typedef union {
Pedge_flag *edges;
} Pedge_data_arr;
typedef struct {
Pint num_edges;
Pedge_data_arr edgedata;
} Pedge_data_list;
typedef struct {
Pint num_lists;
Pedge_data_list *edgelist;
} Pedge_data_list_list;
typedef struct {
Ppoint3 point;
Pcoval colr;
} Pptco3;
typedef struct {
Ppoint3 point;
Pvec3 norm;
} Pptnorm3;
typedef struct {
Ppoint3 point;
Pcoval colr;
Pvec3 norm;
} Pptconorm3;
typedef union {
Ppoint3 *points;
Pptco3 *ptcolrs;
Pptnorm3 *ptnorms;
Pptconorm3 *ptconorms;
} Pfacet_vdata_arr3;
typedef struct {
Pint num_vertices;
Pfacet_vdata_arr3 vertex_data;
} Pfacet_vdata_list3;
typedef struct {
Pgcolr colr;
} Pamb_light_src_rec;
typedef struct {
Pgcolr colr;
Pvec3 dir;
} Pdir_light_src_rec;
typedef struct {
Pgcolr colr;
Ppoint3 pos;
Pfloat coef[2];
} Ppos_light_src_rec;
typedef struct {
Pgcolr colr;
Ppoint3 pos;
Pvec3 dir;
Pfloat exp;
Pfloat coef[2];
Pfloat angle;
} Pspot_light_src_rec;
typedef union {
Pamb_light_src_rec ambient;
Pdir_light_src_rec directional;
Ppos_light_src_rec positional;
Pspot_light_src_rec spot;
} Plight_src_rec;
typedef struct {
Pint type;
Plight_src_rec rec;
} Plight_src_bundle;
typedef struct {
Pint size_x;
Pint size_y;
} Pint_size;
typedef struct {
Pint size_x;
Pint size_y;
Pint size_z;
} Pint_size3;
typedef struct {
Pfloat size_x;
Pfloat size_y;
} Pfloat_size;
typedef struct {
Pfloat size_x;
Pfloat size_y;
Pfloat size_z;
} Pfloat_size3;
typedef struct {
Pdc_units dc_units;
Pfloat_size size_dc;
Pint_size size_raster;
} Pdisp_space_size;
typedef struct {
Pdc_units dc_units;
Pfloat_size3 size_dc;
Pint_size3 size_raster;
} Pdisp_space_size3;
typedef struct {
Pint id;
Pfloat disp_pri;
} Pposted_struct;
typedef struct {
Pint num_postings;
Pposted_struct *postings;
} Pposted_struct_list;
typedef struct {
Pint fflag;
Pint eflag;
Pint vflag;
Pint colr_type;
Pfacet_data3 fdata;
Pint nfa;
Pedge_data_list *edata;
Pfacet_vdata_list3 *vdata;
} Pfasd3;
typedef struct {
Pint fflag;
Pint eflag;
Pint vflag;
Pint colr_type;
Pint num_sets;
Pfacet_data_arr3 fdata;
Pedge_data_list_list *edata;
Pint_list_list *vlist;
Pfacet_vdata_list3 vdata;
} Psofas3;
typedef struct {
Pint_list activation;
Pint_list deactivation;
} Plss;
typedef struct {
Ppoint3 ref_point; /* reference pt */
Pvec3 offset; /* anno. pt/offset */
char *char_string; /* text string */
} Panno_text_rel3;
typedef struct {
Ppoint ref_point; /* reference pt */
Pvec offset; /* anno. pt/offset */
char *char_string; /* text string */
} Panno_text_rel;
typedef struct {
size_t size; /* sizeof data */
void *data; /* pointer to data */
} Pdata;
typedef union {
Pint int_data;
Pfloat float_data;
Ppoint_list point_list;
Ppoint_list3 point_list3;
Ppoint_list_list point_list_list;
Ppoint_list_list3 point_list_list3;
Pfasd3 fasd3;
Psofas3 sofas3;
Ptext_prec text_prec;
Ptext_path text_path;
Ptext_align text_align;
Ptext text;
Ptext3 text3;
Panno_text_rel anno_text_rel;
Panno_text_rel3 anno_text_rel3;
Pasf_info asf_info;
Pvec vec;
Plocal_tran local_tran;
Plocal_tran3 local_tran3;
Pmatrix global_tran;
Pmatrix3 global_tran3;
Pint_list int_list;
Pedge_flag edge_flag;
Pint_style int_style;
Pgcolr colr;
Plss lss;
Prefl_props props;
Pdisting_mode disting_mode;
Pcull_mode cull_mode;
} Pelem_data;
typedef struct {
Plimit win;
Plimit proj_vp;
} Pview_map;
typedef struct {
Plimit3 win;
Plimit3 proj_vp;
Pproj_type proj_type;
Ppoint3 proj_ref_point;
Pfloat view_plane;
Pfloat back_plane;