home *** CD-ROM | disk | FTP | other *** search
/ FreeWare Collection 3 / FreeSoftwareCollection3pd199x-jp.img / pao / ms_dos / game / src / grp.h < prev    next >
Text File  |  1980-01-02  |  5KB  |  140 lines

  1. /* << MSC V5.1 >> *************************************************************
  2. **
  3. **    GRP.LIB  ヘッダ  for FMRシリーズ
  4. **
  5. **    CREATE : 1990.09.19
  6. **    FINISH : 1990.09.19
  7. **
  8. **    < NOTES >
  9. **    TABS = 4
  10. **
  11. **    < HISTORY >
  12. **    1990.09.19 : CREATE
  13. **
  14. **    All Rights Reserved, Copyright (C) Y.Hirata 1990.
  15. **
  16. **    Programed by Y.Hirata ( Nifty ID : NAB03321 )
  17. **
  18. ******************************************************************************/
  19.  
  20. #define        FMTOWNS
  21.  
  22. #ifdef    FMR70                        /*  FMR-70(24ドット用)    */
  23. #define        VIEW_XS        0
  24. #define        VIEW_XE        1119
  25. #define        VIEW_YS        0
  26. #define        VIEW_YE        749
  27. #define        XDOTS        14
  28. #define        YDOTS        30
  29. #else                                /*  FMTOWNS(16ドット用)    */
  30. #define        VIEW_XS        0
  31. #define        VIEW_XE        639
  32. #define        VIEW_YS        0
  33. #define        VIEW_YE        399
  34. #define        XDOTS        8
  35. #define        YDOTS        16
  36. #endif
  37.  
  38. enum Values_for_colors {
  39.         C_BLACK,    C_BLUE,        C_GREEN,    C_SKYBLUE,
  40.         C_RED,        C_PURPLE,    C_YELLOW,    C_WHITE,
  41.         C_GRAY,        C_HBLUE,    C_HGREEN,    C_HSKYBLUE,
  42.         C_HRED,        C_HPURPLE,    C_HYELLOW,    C_HWHITE
  43.     } ;
  44.  
  45. /*-----  GRP_clearScreen用  ---------*/
  46. #define        CLEARGRAPH    0            /*  グラフィックだけをクリアする        */
  47. #define        CLEARTEXT    1            /*  テキストだけをクリアする            */
  48. #define        CLEARSCREEN    3            /*  グラフィック & テキスト をクリアする    */
  49.  
  50. /**************************  グラフィック環境の初期設定  **************************/
  51. void far GRP_init( void ) ;
  52.  
  53. /**************************  グラフィック環境の終了設定  **************************/
  54. void far GRP_end( void ) ;
  55.  
  56. /******************************  パレット色設定  ********************************/
  57. void far GRP_palette( short color, long pixel ) ;
  58.  
  59. /**************************  論理座標上の色取得  *****************************/
  60. short far GRP_getpixel( short x, short y ) ;
  61.  
  62. /***************************  書き込みページの設定  ***************************/
  63. void far GRP_writePage( short page ) ;
  64.  
  65. /*****************************  表示ページの設定  *****************************/
  66. void far GRP_displayPage( short page ) ;
  67.  
  68. /*******************************  背景色設定  ********************************/
  69. void far GRP_bkcolor( long pixel ) ;
  70.  
  71. /*******************************  背景色取得  ********************************/
  72. long far GRP_getbkcolor( void ) ;
  73.  
  74. /*******************************  描画色設定  ********************************/
  75. void far GRP_color( short colorno ) ;
  76.  
  77. /*******************************  描画色取得  ********************************/
  78. short far GRP_getcolor( void ) ;
  79.  
  80. /*******************************  フィルマスク設定  ********************************/
  81. void far GRP_setfillmask( unsigned char *mask ) ;
  82.  
  83. /*******************************  線形状設定  ********************************/
  84. void far GRP_linestyle( unsigned short style ) ;
  85.  
  86. /******************************  カレント位置設定  *******************************/
  87. void far GRP_setposion( short x, short y ) ;
  88.  
  89. /***************************  論理座標原点の設定  ****************************/
  90. void far GRP_setlogorg( short x, short y ) ;
  91.  
  92. /****************************  クリップ領域の設定  *****************************/
  93. void far GRP_viewport( short x1, short y1, short x2, short y2 ) ;
  94.  
  95. /*********************************  線描画  **********************************/
  96. void far GRP_line( short x1, short y1, short x2, short y2 ) ;
  97.  
  98. /*********************************  点描画  **********************************/
  99. void far GRP_pset( short x, short y ) ;
  100.  
  101. /********************************  矩形描画  *********************************/
  102. void far GRP_rectangle( short x1, short y1, short x2, short y2, short control ) ;
  103.  
  104. /*********************************  弧描画  **********************************/
  105. void far GRP_arc( short x1, short y1, short x2, short y2, short x3, short y3, short x4, short y4 ) ;
  106.  
  107. /*********************************  円描画  **********************************/
  108. void far GRP_circle( short x, short y, short r, short control ) ;
  109.  
  110. /********************************  楕円描画  *********************************/
  111. void far GRP_ellipse( short x, short y, short rx, short ry, short control ) ;
  112.  
  113. /********************************  扇形描画  *********************************/
  114. void far GRP_pie( short x1, short y1, short x2, short y2, short x3, short y3, short x4, short y4, short control ) ;
  115.  
  116. /********************************  塗り潰し  *********************************/
  117. void far GRP_paint( short x, short y, short color ) ;
  118.  
  119. /*****************************  グラフィック画面クリア  ******************************/
  120. void far GRP_clearScreen( short sw ) ;
  121.  
  122. /****************************  テキスト表示位置取得  *****************************/
  123. void far GRP_gettextposition( short *row, short *column ) ;
  124.  
  125. /****************************  テキスト表示位置設定  *****************************/
  126. void far GRP_locate( short row, short column ) ;
  127.  
  128. /*****************************  テキスト表示色設定  ******************************/
  129. void far GRP_textcolor( short color ) ;
  130.  
  131. /********************************  テキスト表示  *********************************/
  132. void far GRP_outtext( char far *text ) ;
  133.  
  134. /********************************  カーソル制御  *********************************/
  135. void far GRP_cursor( short toggle ) ;
  136.  
  137. /***********************  BEEP音を出す(カウンタ数,指定時間)  *********************/
  138. unsigned GRP_beep( unsigned short time,unsigned short count ) ;
  139.  
  140.