Sprite16.hsf 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. [Main]
  2. Name=Sprite16
  3. Type=Function
  4. Subtype=tigcc.a
  5. Header Files=sprites.h
  6. Definition=void Sprite16 (short x, short y, short height, const unsigned short *sprite, void *vm_addr, short mode);
  7. Real Definition=extern void Sprite16(short asm("d0"),short asm("d1"),short asm("d2"),__cpushort asm("a0"),void* asm("a1"),short asm("d3"))__ATTR_LIB_ASM__;
  8. See Also=sprites.h/ClipSprite16
  9. [Library Call]
  10. Asm=1
  11. [Registers]
  12. x=d0
  13. y=d1
  14. height=d2
  15. sprite=a0
  16. vm_addr=a1
  17. mode=d3
  18. [Description]
  19. Draws a sprite with a width of 16 pixels or less on the screen.
  20. [Explanation]
  21. Sprite16 works exactly like <A HREF="$$LINK(sprites.h/Sprite8)">Sprite8</A>, but it takes sprites with a width of 16 pixels.
  22. <I>sprite</I> is now a pointer to the array of unsigned short integers which defines the sprite.
  23. So, to define a sprite (or sprite mask), use something like
  24. <PRE>static const unsigned short sprite[] = {...};
  25. </PRE>
  26. See <A HREF="$$LINK(sprites.h/Sprite8)">Sprite8</A> for more info about sprites, and
  27. <A HREF="$$LINK(sprites.h/ClipSprite16)">ClipSprite16</A> for a version that handles out-of-screen sprites gracefully.