ClipSprite8.hsf 797 B

123456789101112131415161718192021222324252627
  1. [Main]
  2. Name=ClipSprite8
  3. Type=Function
  4. Subtype=tigcc.a
  5. Header Files=sprites.h
  6. Definition=void ClipSprite8 (short x, short y, short height, const unsigned char *sprite, void *vm_addr, short mode);
  7. See Also=sprites.h/Sprite8
  8. [Library Call]
  9. Asm=1
  10. [Registers]
  11. x=d0
  12. y=d1
  13. height=d2
  14. sprite=a0
  15. vm_addr=a1
  16. mode=d3
  17. [Description]
  18. Safely draws a sprite with a width of 8 pixels or less on the screen.
  19. [Explanation]
  20. ClipSprite8 works exactly like <A HREF="$$LINK(sprites.h/Sprite8)">Sprite8</A>, but it doesn't draw out of the boundaries of a 240x128 screen,
  21. unlike Sprite8 if given <CODE>x &lt; 0</CODE>, <CODE>y &lt; 0</CODE>, <CODE>x &gt; 232</CODE> or <CODE>y &gt; 128 - height</CODE>.
  22. <BR><BR>
  23. See <A HREF="$$LINK(sprites.h/Sprite8)">Sprite8</A> for more info about sprites.