home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 10 / AU_CD10.iso / Updates / DigitalCD / !DigitalCD / Copy / PowerBars / h / Sprites < prev    next >
Text File  |  1999-02-11  |  715b  |  41 lines

  1. #ifndef __Sprites__H
  2. #define __Sprites__H
  3.  
  4. #include "Coords.h"
  5.  
  6. typedef struct
  7. {
  8.     int    size;
  9.     int    number;
  10.     int    sproff;
  11.     int    freeoff;
  12. } CSpriteArea;
  13.  
  14. typedef struct
  15. {
  16.     int next;
  17.     char name[12];
  18.     int width;
  19.     int height;
  20.     int lbit;
  21.     int rbit;
  22.     int image;
  23.     int mask;
  24.     int mode;
  25. } CSpriteHdr;
  26.  
  27. typedef struct
  28. {
  29.     int    xmag;
  30.     int    ymag;
  31.     int    xdiv;
  32.     int    ydiv;
  33. } CSpriteFactors;
  34.  
  35. CSpriteArea* Sprites_LoadFile(const char* filename);
  36. CSize GetSpriteSize(const CSpriteArea* pSpriteArea, const char* pSpriteName);
  37. CSize Desktop_GetSpriteSize(const CSpriteArea* pSpriteaArea, const char* pSpriteName);
  38. void Desktop_PlotSprite(const CSpriteArea* pSpriteaArea, const char* pSpriteName, const CPoint* pt, const CRect* prect);
  39.  
  40. #endif
  41.