home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 42 / Amiga Format AFCD42 (Issue 126, Aug 1999).iso / -serious- / programming / c / awin / gccstubs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-17  |  1.7 KB  |  66 lines

  1. #ifndef _AWINGCCSTUBS_H
  2. #define _AWINGCCSTUBS_H
  3.  
  4. /* this stuff don't need to be ppc aligned.
  5.    if you're including these with ppc you're lost already... */
  6.  
  7. struct bltbitmapargs {
  8.   WORD srcx,srcy,dstx,dsty,sizex,sizey,minterm,mask;
  9.   struct BitMap *srcbm,*dstbm;
  10.   UWORD *tempa;
  11.   struct Library *base;
  12. };
  13.  
  14. struct scalepixelarrayargs {
  15.   UWORD srcw,srch,srcmod,dstx,dsty,dstw,dsth,srcf;
  16.   APTR srcrect;
  17.   struct RastPort *rastport;
  18.   struct Library *base;
  19. };
  20.  
  21. struct readpixelarrayargs {
  22.   UWORD dstx,dsty,destmod,srcx,srcy,sizex,sizey,destf;
  23.   APTR destrect;
  24.   struct RastPort *rastport;
  25.   struct Library *base;
  26. };
  27.  
  28. struct writepixelarrayargs {
  29.   WORD srcx,srcy,srcmod,dstx,dsty,sizex,sizey,srcf;
  30.   APTR srcrect;
  31.   struct RastPort *rastport;
  32.   struct Library *base;
  33. };
  34.  
  35. struct writelutpixelarrayargs {
  36.   WORD srcx,srcy,srcmod,dstx,dsty,sizex,sizey,ctabf;
  37.   APTR srcrect;
  38.   struct RastPort *rastport;
  39.   APTR ctable;
  40.   struct Library *base;
  41. };
  42.  
  43. #ifdef __GNUC__
  44.  
  45. ULONG bltbitmap(struct bltbitmapargs *args __asm("a0"));
  46. LONG scalepixelarray(struct scalepixelarrayargs *args __asm("a0"));
  47. LONG readpixelarray(struct readpixelarrayargs *args __asm("a0"));
  48. LONG writepixelarray(struct writepixelarrayargs *args __asm("a0"));
  49. LONG writelutpixelarray(struct writelutpixelarrayargs *args __asm("a0"));
  50.  
  51. #endif /* __GNUC__ */
  52.  
  53.  
  54. #ifdef __SASC
  55.  
  56. ULONG __asm bltbitmap(register __a0 struct bltbitmapargs *args);
  57. LONG __asm scalepixelarray(register __a0 struct scalepixelarrayargs *args);
  58. LONG __asm readpixelarray(register __a0 struct readpixelarrayargs *args);
  59. LONG __asm writepixelarray(register __a0 struct writepixelarrayargs *args);
  60. LONG __asm writelutpixelarray(register __a0 struct writelutpixelarrayargs *args);
  61.  
  62. #endif /* __SASC */
  63.  
  64.  
  65. #endif /* _AWINGCCSTUBS_H */
  66.