home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Graphics / SPD / Sources / drv_unix.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-10  |  1.0 KB  |  56 lines  |  [TEXT/R*ch]

  1. /*
  2.  * drv_unix.c - generic unix graphics driver (stubs - outputs no images)
  3.  */
  4.  
  5. #include "drv.h"
  6.  
  7. void
  8. display_clear()
  9. {
  10.    /* Insert code to clear the graphics display here */
  11. }
  12.  
  13. void
  14. display_init(xres, yres, bk_color)
  15.     int xres, yres;
  16.     COORD3 bk_color;
  17. {
  18.     /* Insert code to open/initialize the graphics display here */
  19. }
  20.  
  21. void
  22. display_close(wait_flag)
  23.     int wait_flag ;
  24. {
  25.     /* Insert code to close the graphics display here */
  26. }
  27.  
  28. /* currently not used for anything, so you don't have to implement */
  29. void
  30. display_plot(x, y, color)
  31.     int x, y;
  32.     COORD3 color;
  33. {
  34.     /* Insert code to plot a single pixel here */
  35. }
  36.  
  37. /* weirdly enough, x and y are centered around the origin - see hp.c for a
  38.  * way to offset these coordinates to a [0 to resolution-1] type of scale.
  39.  */
  40. void
  41. display_line(x0, y0, x1, y1, color)
  42.     int x0, y0, x1, y1;
  43.     COORD3 color;
  44. {
  45.     /* Insert line drawing code here */
  46. }
  47.  
  48. int
  49. kbhit()
  50. {
  51.     /* Insert keyboard hit (i.e. interrupt operation) test code here */
  52.  
  53.     /* currently always no interrupt */
  54.     return( 0 ) ;
  55. }
  56.