home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / progrmng / stk110.lzh / STKSRC.COM / GR_LOW.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-25  |  1.5 KB  |  54 lines

  1. /*********************************************************************
  2. * spr_low.c
  3. *
  4. * A loader module which combines the low level graphics functions for 
  5. * different display hardware. The hardware dependent defines are
  6. * defined in hercules.def and egamono.def.
  7. **********************************************************************
  8.                     This file is part of
  9.  
  10.           STK -- The sprite toolkit -- version 1.1
  11.  
  12.               Copyright (C) Jari Karjala 1991
  13.  
  14. The sprite toolkit (STK) is a FreeWare toolkit for creating high
  15. resolution sprite graphics with PCompatible hardware. This toolkit 
  16. is provided as is without any warranty or such thing. See the file
  17. COPYING for further information.
  18.  
  19. *********************************************************************/
  20.  
  21. /** Tell compiler to use assembler immediately if assembler version **/
  22. #ifndef C_VER
  23. #pragma inline
  24. #endif
  25.  
  26. #include <dos.h>
  27.  
  28. #include "grtypes.h"
  29. #include "gr_low.h"
  30. #include "gr.h"
  31.  
  32.  
  33. BYTE far *(*gr_low_addr)(WORD x, WORD y, BYTE page);
  34. void (*gr_low_putch)(BYTE far* addr, BYTE ch);
  35.  
  36.  
  37. /***** Include defines for hardware dependent defines *****/
  38. #include "hercules.def"
  39. #define ADDR    gr_low_herc_addr
  40. #define PUTCH   gr_low_herc_putch
  41.  
  42. /***** Include the skeletons for the functions *****/
  43. #include "gr_low.def"
  44.  
  45.  
  46. /***** Include defines for hardware dependent defines *****/
  47. #include "egamono.def"
  48. #define ADDR gr_low_ega_mono_addr
  49. #define PUTCH gr_low_ega_mono_putch
  50.  
  51. /***** Include the skeletons for the functions *****/
  52. #include "gr_low.def"
  53.  
  54.