home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / MISC / STK100.ZIP / STKSRC.COM / SPR_FIO.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-10-20  |  1.4 KB  |  41 lines

  1. /**********************************************************************
  2. * spr_fio.h
  3. * The functions for reading sprites from a file.
  4. **********************************************************************
  5.                     This file is part of
  6.  
  7.           STK -- The sprite toolkit -- version 1.0
  8.  
  9.               Copyright (C) Jari Karjala 1990
  10.  
  11. The sprite toolkit (STK) is a FreeWare toolkit for creating high
  12. resolution sprite graphics with PCompatible hardware. This toolkit 
  13. is provided as is without any warranty or such thing. See the file
  14. COPYING for further information.
  15.  
  16. **********************************************************************
  17. **********************************************************************/
  18.  
  19.  
  20. #ifndef __SPR_FIO_H_
  21. #define __SPR_FIO_H_
  22.  
  23. #include "grtypes.h"
  24.  
  25. /**********************************************************************
  26. * Create a sprite from the given SMP file.
  27. *
  28. * smpfile   The sprite bitmap file name.
  29. * res       The number of steps wanted per 8 bit interval in horizontal
  30. *           direction (1,2,4,8). For example, the value 8 gives one
  31. *           pixel resolution in X-direction.
  32. * ID        The user supplied ID for the sprite (not obligatory)
  33. *
  34. * Return: the newly created sprite or NULL if file not found, read
  35. *         error or out-of-memory
  36. **********************************************************************/
  37. SPRITE spr_fio_read_smp(char *smpfile, BYTE res, WORD ID);
  38.  
  39. #endif
  40.