Ignore:
Timestamp:
07/24/09 18:55:27 (3 years ago)
Author:
debrouxl
Message:

library:

  • use explicit register parameters for Sprite8/16/32, bsearch and qsort;
  • regenerate headers;
  • 2-byte optimization in Sprite8: shift count can be computed differently.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tigcc/doc/System/Include/sprites.h/Sprite32.hsf

    r1307 r1360  
    55Header Files=sprites.h 
    66Definition=void Sprite32 (short x, short y, short height, const unsigned long *sprite, void *vm_addr, short mode); 
    7 Real Definition=extern void Sprite32(short,short,short,__cpulong,void*,short)__ATTR_LIB_C__; 
     7Real Definition=extern void Sprite32(short asm("d0"),short asm("d1"),short asm("d2"),__cpulong asm("a0"),void* asm("a1"),short asm("d3"))__ATTR_LIB_ASM__; 
     8 
     9[Library Call] 
     10Asm=1 
     11 
     12[Registers] 
     13x=d0 
     14y=d1 
     15height=d2 
     16sprite=a0 
     17vm_addr=a1 
     18mode=d3 
    819 
    920[Description] 
     
    2334<BR><BR> 
    2435If you want to use sprites wider than 32 pixels (which is not very likely), one solution is to 
    25 use DoorsOS and its "put_sprite" function (see <A HREF="$$INFOLINK(faq)">Frequently Asked Questions</A> 
    26 for more info about how to do it). If you don't want to use DoorsOS, the proposed method depends 
    27 on what the use of the sprite will be. If you don't need too fast action, the built-in TIOS function 
    28 <A HREF="$$LINK(graph.h/BitmapPut)">BitmapPut</A> may be good enough. If you need a very fast sprite 
    29 routine for very large sprites, then you must write it yourself. 
     36use a "kernel"-based program and <CODE>graphlib::put_sprite</CODE> (see <A HREF="$$INFOLINK(faq)">Frequently Asked Questions</A> 
     37for more info about how to do it). If you don't want to use kernel-based programs, the proposed method depends 
     38on what the use of the sprite will be: 
     39<UL> 
     40<LI> 
     41If you don't need too fast action, the built-in TIOS function <A HREF="$$LINK(graph.h/BitmapPut)">BitmapPut</A> may be good enough. 
     42</LI> 
     43<LI> 
     44If you need a very fast sprite routine for very large sprites, then you must write it yourself, or use prewritten ones in 
     45ExtGraph or Genlib. 
     46</LI> 
     47</UL> 
    3048<BR><BR> 
    3149See <A HREF="$$LINK(sprites.h/Sprite8)">Sprite8</A> for more info about sprites. 
Note: See TracChangeset for help on using the changeset viewer.