home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / cbm / os-include.lha / os-include / graphics / sprite.h < prev    next >
C/C++ Source or Header  |  1993-10-15  |  1KB  |  53 lines

  1. #ifndef    GRAPHICS_SPRITE_H
  2. #define    GRAPHICS_SPRITE_H
  3. /*
  4. **    $VER: sprite.h 39.6 (16.6.92)
  5. **    Includes Release 40.15
  6. **
  7. **
  8. **
  9. **    (C) Copyright 1985-1993 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include <exec/types.h>
  15. #endif
  16.  
  17. #define SPRITE_ATTACHED 0x80
  18.  
  19. struct SimpleSprite
  20. {
  21.     UWORD *posctldata;
  22.     UWORD height;
  23.     UWORD   x,y;    /* current position */
  24.     UWORD   num;
  25. };
  26.  
  27. struct ExtSprite
  28. {
  29.     struct SimpleSprite es_SimpleSprite;    /* conventional simple sprite structure */
  30.     UWORD    es_wordwidth;            /* graphics use only, subject to change */
  31.     UWORD    es_flags;            /* graphics use only, subject to change */
  32. };
  33.  
  34.  
  35.  
  36. /* tags for AllocSpriteData() */
  37. #define SPRITEA_Width        0x81000000
  38. #define SPRITEA_XReplication    0x81000002
  39. #define SPRITEA_YReplication    0x81000004
  40. #define SPRITEA_OutputHeight    0x81000006
  41. #define SPRITEA_Attached    0x81000008
  42. #define SPRITEA_OldDataFormat    0x8100000a    /* MUST pass in outputheight if using this tag */
  43.  
  44. /* tags for GetExtSprite() */
  45. #define GSTAG_SPRITE_NUM 0x82000020
  46. #define GSTAG_ATTACHED     0x82000022
  47. #define GSTAG_SOFTSPRITE 0x82000024
  48.  
  49. /* tags valid for either GetExtSprite or ChangeExtSprite */
  50. #define GSTAG_SCANDOUBLED    0x83000000    /* request "NTSC-Like" height if possible. */
  51.  
  52. #endif    /* GRAPHICS_SPRITE_H */
  53.