home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1999 Spring / macformat-077.iso / Shareware Plus / Development / SpriteWorld 2.2 / SpriteWorld files / Headers / SpriteCompiler.h < prev    next >
Encoding:
Text File  |  1996-10-29  |  1.4 KB  |  79 lines  |  [TEXT/CWIE]

  1. ///--------------------------------------------------------------------------------------
  2. //    SpriteCompiler.h
  3. //
  4. //    Portions are copyright: © 1991-94 Tony Myles, All rights reserved worldwide.
  5. //
  6. //    Description:    constants, structures, and prototypes for the sprite compiler
  7. ///--------------------------------------------------------------------------------------
  8.  
  9.  
  10. #ifndef __SPRITECOMPILER__
  11. #define __SPRITECOMPILER__
  12.  
  13. #ifndef __SWCOMMON__
  14. #include "SWCommonHeaders.h"
  15. #endif
  16.  
  17. #ifndef __SPRITEFRAME__
  18. #include "SpriteFrame.h"
  19. #endif
  20.  
  21. #ifndef __SPRITE__
  22. #include "Sprite.h"
  23. #endif
  24.  
  25. #ifndef __TYPES__
  26. #include <Types.h>
  27. #endif
  28.  
  29. #ifndef __QUICKDRAW__
  30. #include <QuickDraw.h>
  31. #endif
  32.  
  33.  
  34.  
  35. #define    kMaxInstructionSize 8
  36.  
  37.  
  38. #ifdef __cplusplus
  39. extern "C" {
  40. #endif
  41.  
  42. #if PRAGMA_ALIGN_SUPPORTED
  43. #pragma options align=mac68k
  44. #endif
  45.  
  46. SW_FUNC OSErr SWCompileSprite(
  47.     SpritePtr srcSpriteP);
  48.  
  49. SW_FUNC OSErr SWCompileFrame(
  50.     FramePtr srcFrameP);
  51.  
  52. SW_FUNC OSErr SWParsePixels(
  53.     Ptr maskStartAddrP,
  54.     Rect* frameRect,
  55.     unsigned long numBytesPerRow,
  56.     PixelCodeHdl* newPixCodeH);
  57.  
  58. SW_FUNC OSErr SWGeneratePreamble(
  59.     PixelCodeHdl srcPixCodeH);
  60.  
  61. SW_FUNC OSErr SWGeneratePostamble(
  62.     PixelCodeHdl srcPixCodeH);
  63.  
  64. SW_FUNC OSErr SWCompileMaskScanLine(
  65.     PixelCodeHdl newPixCodeH,
  66.     Ptr maskPixelP,
  67.     long numberOfPixels,
  68.     Boolean isLastScanLine);
  69.  
  70. #if PRAGMA_ALIGN_SUPPORTED
  71. #pragma options align=reset
  72. #endif
  73.  
  74. #ifdef __cplusplus
  75. }
  76. #endif
  77.  
  78. #endif    /* __SPRITECOMPILER__ */
  79.