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

  1. /**********************************************************************
  2. * gr_low.h
  3. *
  4. * The hardware dependent parts of the gr module. 
  5. **********************************************************************
  6.                     This file is part of
  7.  
  8.           STK -- The sprite toolkit -- version 1.1
  9.  
  10.               Copyright (C) Jari Karjala 1991
  11.  
  12. The sprite toolkit (STK) is a FreeWare toolkit for creating high
  13. resolution sprite graphics with PCompatible hardware. This toolkit 
  14. is provided as is without any warranty or such thing. See the file
  15. COPYING for further information.
  16.  
  17. **********************************************************************
  18. **********************************************************************/
  19.  
  20. /**********************************************************************
  21. * ADDR
  22. * Return the address of the given (x,y) coordinate pair in the
  23. * given graphics page.
  24. * x,y     X,Y coordinates
  25. * page    The graphics page (0/1)
  26. *
  27. * Return: far pointer into the screen.
  28. **********************************************************************/
  29.  
  30. /**********************************************************************
  31. * PUTCH
  32. *
  33. * Put character 'c' at the given address. Use OVERWRITE mode.
  34. **********************************************************************/
  35.  
  36. extern BYTE far *(*gr_low_addr)(WORD x, WORD y, BYTE page);
  37. extern void (*gr_low_putch)(BYTE far* addr, BYTE ch);
  38.  
  39. /*** Hercules graphics card **/
  40. BYTE far *gr_low_herc_addr(WORD x, WORD y, BYTE page);
  41. void gr_low_herc_putch(BYTE far* addr, BYTE ch);
  42.  
  43. /*** EGA/VGA graphics card in B/W 640x350 mode **/
  44. BYTE far *gr_low_ega_mono_addr(WORD x, WORD y, BYTE page);
  45. void gr_low_ega_mono_putch(BYTE far* addr, BYTE ch);
  46.