home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / MISC / STK100.ZIP / STKSRC.COM / SPR_LOW.H < prev    next >
Encoding:
Text File  |  1990-10-20  |  2.7 KB  |  68 lines

  1. /**********************************************************************
  2. * spr_low.h
  3. *
  4. * The hardware dependent parts of the sprite support. 
  5. **********************************************************************
  6.                     This file is part of
  7.  
  8.           STK -- The sprite toolkit -- version 1.0
  9.  
  10.               Copyright (C) Jari Karjala 1990
  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. * PUT
  32. * Put the given shape into the given address using the given mask and
  33. * saving the old contents into the given buffer. The shape and mask
  34. * data must be combined as described in the file sprP.h and they
  35. * must reside in the same segment as save buffer.
  36. * shape   The address of the combined shape/mask data
  37. * dest    The destination address in the frame buffer
  38. * save    The address of the save buffer
  39. * w       The width of the shape in bytes
  40. * h       The height of the shape in pixels
  41. **********************************************************************/
  42.  
  43. /**********************************************************************
  44. * ERASE
  45. * Erase the sprite from screen by putting the saved data back
  46. * dest    The destination address in the frame buffer
  47. * save    The address of the save buffer
  48. * w       The width of the shape in bytes
  49. * h       The height of the shape in pixels
  50. **********************************************************************/
  51.  
  52.  
  53. /*** Hercules graphics card **/
  54. BYTE far *spr_low_herc_addr(WORD x, WORD y, BYTE page);
  55. void spr_low_herc_put(BYTE far *shape, BYTE far *dest, BYTE far *save, 
  56.                       WORD w, WORD h);
  57. void spr_low_herc_erase(BYTE far *dest, BYTE far *save, WORD w, WORD h);
  58.  
  59. /*** EGA/VGA graphics card in B/W 640x350 mode **/
  60. BYTE far *spr_low_ega_mono_addr(WORD x, WORD y, BYTE page);
  61. void spr_low_ega_mono_put(BYTE far *shape, BYTE far *dest, BYTE far *save, 
  62.                       WORD w, WORD h);
  63. void spr_low_ega_mono_erase(BYTE far *dest, BYTE far *save, WORD w, WORD h);
  64.  
  65.