home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / games / graph.zip / GRAPH.H < prev    next >
Text File  |  1987-06-10  |  2KB  |  45 lines

  1. /*--------------------------------------------------------------------------
  2.  *                                  graph.h
  3.  *
  4.  *                       copyright 1987 by Michael Allen
  5.  *
  6.  *      This contains the function prototypes for the functions in graph.lib
  7.  *      You must include this in your each module that uses these functions
  8.  *      with a: #include "graph.h".
  9.  *
  10.  *-------------------------------------------------------------------------*/
  11.  
  12. int    baseaddress(int y);  /* returns the line offset in the screen buffer */
  13.                              /* for Y */
  14.  
  15. BYTE   hardwarepresent();         /* returns true if the CGA is present   */
  16.  
  17. void   init_graphics(int mode); /* sets graphics mode. these functions     */
  18.                                 /* support high - res mode only..       */ 
  19.  
  20. void   hirescolor(int color); /* sets foreground color, see glob_def.h */
  21.  
  22. void   gotoxy(int x, int y);     /* moves cursor to x y */
  23.  
  24. void   clearscreen();             /* clears full screen */
  25.  
  26. void   plot(int x, int y);      /* draws one pixel at x, y using current */
  27.                                 /* drawing mode (normal or xor_mode)     */
  28.  
  29. void   draw_line(int x, int y, int newx, int newy);  /* draws line from x, y  */
  30.                                                      /* to newx, newy         */ 
  31.  
  32. void   draw_box(int x1, int y1, int x2, int y2);     /* draws box given corners */
  33.  
  34. void   draw_circle(int bx, int by, int tox, int toy); /* bx,by is center, tox, toy */
  35.                                                       /* on circumference          */
  36.  
  37. void   lips(int bx, int by, int tx, int ty);  /* draws ellipse: by,by at center,   */
  38.                                               /* tx,ty = corner of box containing  */
  39.  
  40. /* ------------------------------------------------------------ */
  41.  
  42.  
  43.  
  44.  
  45.