1 #ifndef GRAPHICS_SPRITE_H 2 #define GRAPHICS_SPRITE_H 3 4 /* 5 graphics sprite definitions 6 7 Copyright © 2002 The MorphOS Development Team, All Rights Reserved. 8 */ 9 10 #ifndef EXEC_TYPES_H 11 # include <exec/types.h> 12 #endif 13 14 #pragma pack(2) 15 16 17 #define SPRITE_ATTACHED 0x80 18 19 struct SimpleSprite 20 { 21 UWORD *posctldata; 22 UWORD height; 23 UWORD x, y; 24 UWORD num; 25 }; 26 27 struct ExtSprite 28 { 29 struct SimpleSprite es_SimpleSprite; 30 UWORD es_wordwidth; 31 UWORD es_flags; 32 }; 33 34 35 /* AllocSpriteDataA() tag options */ 36 #define SPRITEA_Width 0x81000000 37 #define SPRITEA_XReplication 0x81000002 38 #define SPRITEA_YReplication 0x81000004 39 #define SPRITEA_OutputHeight 0x81000006 40 #define SPRITEA_Attached 0x81000008 41 #define SPRITEA_OldDataFormat 0x8100000A 42 43 /* new v50 defines */ 44 #define SPRITEA_ViewPort 0x81000020 /* viewport this sprite is going to be used with */ 45 46 47 /* GetExtSprite() tag options */ 48 49 #define GSTAG_SPRITE_NUM 0x82000020 50 #define GSTAG_ATTACHED 0x82000022 51 #define GSTAG_SOFTSPRITE 0x82000024 52 53 #define GSTAG_SCANDOUBLED 0x83000000 54 55 56 #pragma pack() 57 58 #endif /* GRAPHICS_SPRITE_H */