home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / demos / gpc / bifbuild.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-15  |  5.5 KB  |  244 lines

  1. /* $XConsortium: bifbuild.h,v 5.1 91/02/16 10:06:55 rws Exp $ */
  2.  
  3. /*
  4.  */
  5.  
  6. /*--------------------------------------------------------------------*\
  7. |
  8. |  Copyright (C) 1989,1990, 1991, National Computer Graphics Association
  9. |
  10. |  Permission is granted to any individual or institution to use, copy, or
  11. |  redistribute this software so long as it is not sold for profit, provided
  12. |  this copyright notice is retained.
  13. |
  14. |                         Developed for the
  15. |                National Computer Graphics Association
  16. |                         2722 Merrilee Drive
  17. |                         Fairfax, VA  22031
  18. |                           (703) 698-9600
  19. |
  20. |                                by
  21. |                 SimGraphics Engineering Corporation
  22. |                    1137 Huntington Drive  Unit A
  23. |                      South Pasadena, CA  91030
  24. |                           (213) 255-0900
  25. |---------------------------------------------------------------------
  26. |
  27. | Author        :    jmz / SimGraphics Engineering Corportation
  28. |
  29. | File          :    bifbuild.h
  30. | Date          :    3/15/89
  31. | Project       :    PLB
  32. |
  33. | Description    :    Contain enumeration values for various BIF
  34. |            and PHIGS items found in bifbuild.c ( and other
  35. |            files as well )
  36. |
  37. | Status    :    Version 1.0
  38. |            Many of the #defines are unused.  Also some
  39. |            of the BIF_<> values have been "set" to work
  40. |            with GX4000 PHIGS.
  41. |
  42. | Revisions     :    
  43. |
  44. \*--------------------------------------------------------------------*/
  45.  
  46. /*--------------------------------------------------------------------*\
  47. |    Include files
  48. \*--------------------------------------------------------------------*/
  49.  
  50. /*--------------------------------------------------------------------*\
  51. |    Local #define 
  52. \*--------------------------------------------------------------------*/
  53.  
  54.  
  55. /* GX4000 TABLE SIZE Limits */
  56. #define BIF_MAX_LIGHTS        8
  57. #define MAX_BIF_LIGHTS        BIF_MAX_LIGHTS
  58. #define BIF_MAX_DCRS        20
  59. #define BIF_P_BEGIN        0
  60. #define BIF_P_END        1
  61. #define BIF_END_OF_GROUP    -9999
  62.  
  63. #define BIF_ENABLE        0
  64. #define BIF_DISABLE        1
  65.  
  66. /* INVOKE AT FRAME STYLE */
  67. #define BIF_CALL        0
  68. #define BIF_EXECUTE        1
  69.  
  70. /* GET MATRIX PARAMETERS */
  71. #define BIF_VIEW_MAPPING    1
  72. #define BIF_VIEW_ORIENTATION    2
  73. #define BIF_GLOBAL_MODELLING    3
  74. #define BIF_LOCAL_MODELLING    4
  75. #define BIF_COMPOSITE_MODELLING    5
  76.  
  77. /* Remap to the correct ENUM value */
  78. #define BIF_TRUE_COLOR TRUE_COLOR
  79.  
  80.  
  81. /* PHIGS ENUMERATED VALUES */
  82.  
  83. /* Colour Source Flag*/
  84. #define FIG_PDIRECT    Fi0
  85. #define FIG_PINDEXD    Fi1
  86.  
  87. /* Colour Source Id */
  88. #define FIG_PCOPL    Fi0
  89. #define FIG_PCOINT    Fi1
  90. #define FIG_PCOEDG    Fi2
  91. #define FIG_PCOTXT    Fi3
  92. #define FIG_PCOPM    Fi4
  93. #define FIG_PCOBK    Fi5
  94.  
  95. /* Colour Inquiry Type */
  96. #define FIG_PINQ_SET    Fi0
  97. #define FIG_PREALI    Fi1
  98.  
  99. /* TEXT ALIGNMENT */
  100. #define FIG_PCHARP    Fi1
  101. #define FIG_PACENT    Fi2
  102. #define FIG_PAHALF    Fi3
  103.  
  104. /* Update State */
  105. #define    FIG_PDEFER_WAITD    Fi4
  106. #define FIG_PMODE_NIVE    Fi0
  107.  
  108. /* Update Switch */
  109. #define FIG_PPERFO    Fi1
  110.  
  111. /* GDP3 option */
  112. #define FIG_WRITEIMAGE    Fim1
  113. #define FIG_PIXFUNC    Fim2
  114.  
  115.  
  116. /* Interior style */
  117. #define BIF_HOLLOW        0
  118. #define BIF_SOLID        1
  119. #define BIF_PATTERN        2
  120. #define BIF_EMPTY        4
  121.  
  122. /* Edge Flag */
  123. #define BIF_OFF            0
  124. #define BIF_ON            1
  125.  
  126. /* Text Precision */
  127. #define BIF_STRING        0
  128. #define BIF_CHAR        1
  129. #define BIF_STROKE        2
  130.  
  131. /* Light Types */
  132. #define BIF_AMBIENT        1
  133. #define BIF_DIRECTIONAL        2
  134. #define BIF_POSITIONAL        3
  135. #define BIF_SPOT        4
  136.  
  137. /* HLHSR modes */
  138. #define BIF_HLHS_DISABLE    0
  139. #define BIF_HLHS_ENABLE        1
  140.  
  141. /* Color Models */
  142. #define BIF_RGB            1
  143. #define BIF_CIE            2
  144. #define BIF_HSV            3
  145. #define BIF_HLS            4
  146.  
  147. /* Matrix Manipulation */
  148. #define BIF_PRECONCAT        0
  149. #define BIF_POSTCONCAT        1
  150. #define BIF_REPLACE        2
  151.  
  152. /* Projection Type */
  153. #define BIF_PARALLEL        0
  154. #define BIF_PERSPECTIVE        1
  155.  
  156. /* View Spec. Info */
  157. #define BIF_NO_AREA_MATCH    0
  158. #define BIF_NO_CLIP        0
  159. #define BIF_CLIP        1
  160.  
  161. /* Pixel Update Functions */
  162. #define BIF_PF_ADD        3
  163. #define BIF_PF_AND        5
  164. #define BIF_PF_CLEAR        4
  165. #define BIF_PF_INVERT        14
  166. #define BIF_PF_NAND        17
  167. #define BIF_PF_NOOP        9
  168. #define BIF_PF_NOR        12
  169. #define BIF_PF_OR        11
  170. #define BIF_PF_REPLACE        0
  171. #define BIF_PF_SET        18
  172. #define BIF_PF_SUBTRACT_DEST    1
  173. #define BIF_PF_SUBTRACT_SOURCE    2
  174. #define BIF_PF_XOR        10
  175.  
  176. /* bifbuild.c functions */
  177. int bif_activeview();
  178. int bif_applytoglobal3();
  179. int bif_applytolocal3();
  180. int bif_backgroundcolorindex();
  181. int bif_begintest();
  182. int bif_begstr();
  183. int bif_callstr();
  184. int bif_charheight();
  185. int bif_charupvector();
  186. int bif_cleargeom();
  187. int bif_colormodel();
  188. int bif_concatmatrix3();
  189. int bif_contour();
  190. int bif_definecolor();
  191. int bif_definelight();
  192. int bif_defviewspec();
  193. int bif_edgeflag();
  194. int bif_edgewidth();
  195. int bif_endstr();
  196. int bif_endtest();
  197. int bif_execstr();
  198. int bif_faset3();
  199. int bif_fasetdata3();
  200. int bif_group();
  201. int bif_gtransform3();
  202. int bif_hlhsremoval();
  203. int bif_identity3();
  204. int bif_intcolorindex();
  205. int bif_intlight();
  206. int bif_intlist();
  207. int bif_intshade();
  208. int bif_invertmatrix3();
  209. int bif_lightbasic();
  210. int bif_lightoption();
  211. int bif_lightstate();
  212. int bif_line3();
  213. int bif_linecolorindex();
  214. int bif_linetype();
  215. int bif_linewidth();
  216. int bif_ltransform3();
  217. int bif_marker3();
  218. int bif_matrix3();
  219. int bif_mkcolorindex();
  220. int bif_mkscale();
  221. int bif_mktype();
  222. int bif_pause();
  223. int bif_polydata3();
  224. int bif_polygon3();
  225. int bif_readgeom();
  226. int bif_rotate3();
  227. int bif_rotatexyz3();
  228. int bif_scale3();
  229. int bif_sleep();
  230. int bif_surfprop();
  231. int bif_text3();
  232. int bif_textalign();
  233. int bif_textcolorindex();
  234. int bif_textfont();
  235. int bif_textpath();
  236. int bif_textprec();
  237. int bif_translate3();
  238. int bif_triplet();
  239. int bif_viewmap3();
  240. int bif_viewmapbasic();
  241. int bif_viewmapmatch();
  242. int bif_vieworient3();
  243. int bif_viewspec();
  244.