GR.INC 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. ;THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
  2. ;SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
  3. ;END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
  4. ;ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
  5. ;IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
  6. ;SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
  7. ;FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
  8. ;CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
  9. ;AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
  10. ;COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
  11. ;
  12. ; $Source: f:/miner/source/2d/rcs/gr.inc $
  13. ; $Revision: 1.9 $
  14. ; $Author: mike $
  15. ; $Date: 1994/11/09 23:04:50 $
  16. ;
  17. ; Header file for 2d library
  18. ;
  19. ; $Log: gr.inc $
  20. ; Revision 1.9 1994/11/09 23:04:50 mike
  21. ; Add avg_color field.
  22. ;
  23. ; Revision 1.8 1994/10/26 23:55:49 john
  24. ; Took out roller; Took out inverse table.
  25. ;
  26. ; Revision 1.7 1994/10/25 12:05:29 john
  27. ; Added gr_fade_table and gr_palette.
  28. ;
  29. ; Revision 1.6 1994/03/15 22:24:31 matt
  30. ; Added gr_setcolor_ and gr_inverse_table
  31. ;
  32. ; Revision 1.5 1994/03/14 16:56:05 john
  33. ; Changed grs_bitmap structure to include bm_flags.
  34. ;
  35. ; Revision 1.4 1994/02/04 13:21:12 matt
  36. ; Added extern for rotate_bitmap
  37. ;
  38. ; Revision 1.3 1993/12/21 19:58:14 john
  39. ; added selector stuff
  40. ;
  41. ; Revision 1.2 1993/10/15 16:26:24 john
  42. ; *** empty log message ***
  43. ;
  44. ; Revision 1.1 1993/10/15 16:21:18 john
  45. ; Initial revision
  46. ;
  47. ;
  48. ;
  49. IFNDEF _gr_inc
  50. _gr_inc EQU 1
  51. include fix.inc
  52. include psmacros.inc
  53. ;Note: this file was initially converted using H2INC, but extensively
  54. ;modified by hand.
  55. ; Begin of file gr.h
  56. MAX_SCAN_LINES EQU 1200t
  57. grs_font STRUCT 2t
  58. ft_w SWORD ?
  59. ft_h SWORD ?
  60. ft_flags SWORD ?
  61. ft_baseline SWORD ?
  62. ft_minchar BYTE ?
  63. ft_maxchar BYTE ?
  64. ft_bytewidth SWORD ?
  65. ft_data dd ?
  66. ft_chars dd ?
  67. ft_widths dd ?
  68. ft_drawfunc dd ?
  69. grs_font ENDS
  70. BM_LINEAR EQU 0t
  71. BM_MODEX EQU 1t
  72. BM_SVGA EQU 2t
  73. BM_RGB15 EQU 3t
  74. grs_bitmap STRUCT 2t
  75. bm_x SWORD ?
  76. bm_y SWORD ?
  77. bm_w SWORD ?
  78. bm_h SWORD ?
  79. bm_type BYTE ?
  80. bm_flags BYTE ?
  81. bm_rowsize SWORD ?
  82. bm_data dd ?
  83. bm_selector dw ?
  84. bm_avg_pixel BYTE ?
  85. bm_unused BYTE ?
  86. grs_bitmap ENDS
  87. grs_canvas STRUCT 2t
  88. ;;cv_bitmap grs_bitmap <>
  89. cv_bitmap db size grs_bitmap dup (?)
  90. cv_color SWORD ?
  91. cv_drawmode SWORD ?
  92. cv_font dd ?
  93. cv_font_fg_color SWORD ?
  94. cv_font_bg_color SWORD ?
  95. grs_canvas ENDS
  96. grs_screen STRUCT 2t
  97. ;;sc_canvas grs_canvas <>
  98. sc_canvas db size grs_canvas dup (?)
  99. sc_mode SWORD ?
  100. sc_w SWORD ?
  101. sc_h SWORD ?
  102. sc_aspect fix ?
  103. pal BYTE 768t DUP (?)
  104. grs_screen ENDS
  105. SM_320x200C EQU 0t
  106. SM_320x200U EQU 1t
  107. SM_320x240U EQU 2t
  108. SM_360x200U EQU 3t
  109. SM_360x240U EQU 4t
  110. SM_376x282U EQU 5t
  111. SM_320x400U EQU 6t
  112. SM_320x480U EQU 7t
  113. SM_360x400U EQU 8t
  114. SM_360x480U EQU 9t
  115. SM_360x360U EQU 10t
  116. SM_376x308U EQU 11t
  117. SM_376x564U EQU 12t
  118. SM_640x400V EQU 13t
  119. SM_640x480V EQU 14t
  120. SM_800x600V EQU 15t
  121. SM_1024x768V EQU 16t
  122. extn gr_init_
  123. extn gr_close_
  124. extn gr_create_canvas_
  125. extn gr_create_sub_canvas_
  126. extn gr_init_canvas_
  127. extn gr_init_sub_canvas_
  128. extn gr_free_canvas_
  129. extn gr_free_sub_canvas_
  130. extn gr_create_bitmap_
  131. extn gr_create_bitmap_raw_
  132. extn gr_create_sub_bitmap_
  133. extn gr_free_bitmap_
  134. extn gr_free_sub_bitmap_
  135. extn gr_bm_pixel_
  136. extn gr_bm_upixel_
  137. extn gr_bm_ubitblt_
  138. extn gr_bm_ubitbltm_
  139. extn gr_set_palette_
  140. extn gr_getcolor_
  141. extn gr_set_drawmode_
  142. extn gr_poly_
  143. extn gr_upoly_
  144. extn gr_pixel_
  145. extn gr_upixel_
  146. extn gr_gpixel_
  147. extn gr_ugpixel_
  148. extn gr_line_
  149. extn gr_uline_
  150. extn gr_bitmap_
  151. extn gr_ubitmap_
  152. extn gr_rect_
  153. extn gr_urect_
  154. extn gr_disk_
  155. extn gr_udisk_
  156. extn gr_circle_
  157. extn gr_ucircle_
  158. extn gr_box_
  159. extn gr_ubox_
  160. extn gr_scanline_
  161. extn gr_uscanline_
  162. extn gr_init_font_
  163. extn gr_set_fontcolor_
  164. extn gr_set_curfont_
  165. extn gr_string_
  166. extn gr_ustring_
  167. extn gr_printf_
  168. extn gr_uprintf_
  169. extn gr_get_string_size_
  170. extn FixDivide_
  171. extn gr_show_canvas_
  172. extn gr_set_current_canvas_
  173. extn rotate_bitmap_
  174. extn gr_setcolor_
  175. extn gr_find_closest_color_15bpp_
  176. EXTERNDEF C grd_curcanv:PTR grs_canvas
  177. EXTERNDEF C grd_curscreen:PTR grs_screen
  178. EXTERNDEF C Test_bitmap_data:BYTE
  179. EXTERNDEF C gr_inverse_table:BYTE
  180. EXTERNDEF C gr_palette:BYTE
  181. EXTERNDEF C gr_fade_table:BYTE
  182. FT_COLOR EQU 1t
  183. FT_PROPORTIONAL EQU 2t
  184. ; End of file gr.h
  185. ENDIF