home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / gnu / gchsrc31 / include / easyspri.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-27  |  1.6 KB  |  45 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. //  This file is part of the Atari Machine Specific Library,
  4. //  and is Copyright 1992 by Warwick W. Allison.
  5. //
  6. //  You are free to copy and modify these sources, provided you acknoledge
  7. //  the origin by retaining this notice, and adhere to the conditions
  8. //  described in the file COPYING.
  9. //
  10. //////////////////////////////////////////////////////////////////////////////
  11.  
  12. #ifndef _EasySprite_h
  13. #define _EasySprite_h
  14. #include <Sprite.h>
  15. //////////////////////////////////////////////////////////////////
  16. //
  17. //  Simplified sprite creation routines.
  18. //
  19. //////////////////////////////////////////////////////////////////
  20.  
  21. Incarnation* GetIncarnation(Screen& S,int x,int y,int h,int attr);
  22. //
  23. //    Get an Incarnation of the given height from (x,y) on the given screen,
  24. //    with as close as possible to the given attributes.
  25. //
  26.  
  27. Sprite* GetMobileSprite(Screen&,int x,int y,int h,int attr,int n=1,int dx=16,int dy=0);
  28. Sprite* GetSprite(Screen&,int x,int y,int h,int attr,int n=1,int dx=16,int dy=0);
  29. //
  30. //    Get a Sprite from the given Screen, using the n images of height h,
  31. //    from (x,y) in steps of (+dx,+dy).  All Incarnations in the Sprite
  32. //    will be of a type which attempts to provide the requested attribute.
  33. //
  34.  
  35. // Attributes:
  36. //
  37. #define SP_SIMPLE        0x0        // No special features
  38. #define SP_MONO            0x0        // Monochrome
  39. #define SP_COLOUR        0x1        // 16-Colour
  40. #define SP_WIDE            0x2        // 32 pixels wide
  41. #define SP_FAST            0x4        // Faster, but use more memory
  42. #define SP_HOTCENTRE    0x8        // Hot spot of incarnations in there centre
  43.  
  44. #endif
  45.