home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / comm / ykh121.zip / YKHSRC.ZIP / GRAPH.C < prev    next >
C/C++ Source or Header  |  1993-04-18  |  2KB  |  57 lines

  1. #include "gfxlib.h"
  2. #include "txtlib.h"
  3. #include "graph.h"
  4. #include "font.h"
  5.  
  6. int far  (*graph_init     )(unsigned,char,char,char far*       );
  7. int far  (*graph_deinit   )(void                               );
  8. void far (*graph_put      )(unsigned,unsigned,unsigned         );
  9. void far (*graph_ascii_put)(unsigned,unsigned,unsigned         );
  10. void far (*graph_clear    )(unsigned,unsigned,unsigned,unsigned);
  11. void far (*graph_set      )(unsigned,unsigned,unsigned,unsigned);
  12. void far (*graph_xor      )(unsigned,unsigned,unsigned,unsigned);
  13. void far (*graph_bold8    )(unsigned,unsigned,unsigned,unsigned);
  14. void far (*graph_underline)(unsigned,unsigned,unsigned,unsigned);
  15. void far (*graph_gray     )(unsigned,unsigned,unsigned,unsigned);
  16.  
  17. void far (*graph_fcopy    )(unsigned,unsigned,unsigned,unsigned,unsigned,unsigned);
  18. void far (*graph_bcopy    )(unsigned,unsigned,unsigned,unsigned,unsigned,unsigned);
  19.  
  20. void graphics_init(int mode)
  21. {
  22. switch(mode)
  23.   {
  24.   case GRAPH_TEXT:
  25.     graph_init     =txt_init;
  26.     graph_deinit   =txt_deinit;
  27.     graph_put      =txt_put;
  28.     graph_ascii_put=txt_ascii_put;
  29.     graph_clear    =txt_clear;
  30.     graph_set      =txt_set;
  31.     graph_xor      =txt_xor;
  32.     graph_bold8    =txt_bold8;
  33.     graph_underline=txt_underline;
  34.     graph_gray     =txt_gray;
  35.     graph_fcopy    =txt_fcopy;
  36.     graph_bcopy    =txt_bcopy;
  37.     break;
  38.   case GRAPH_GRAPHICS:
  39.     graph_init     =gfx_init;
  40.     graph_deinit   =gfx_deinit;
  41.     graph_put      =font_put;
  42.     graph_ascii_put=gfx_ascii_put;
  43.     graph_clear    =gfx_clear;
  44.     graph_set      =gfx_set;
  45.     graph_xor      =gfx_xor;
  46.     graph_bold8    =gfx_bold8;
  47.     graph_underline=gfx_underline;
  48.     graph_gray     =gfx_gray;
  49.     graph_fcopy    =gfx_fcopy;
  50.     graph_bcopy    =gfx_bcopy;
  51.     break;
  52.   }
  53. }
  54.  
  55. void graphics_deinit()
  56. {
  57. }