home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Pascal / Snippets / PNL Libraries / Libraries / SpriteWorld / SpriteWorld files / Headers / SpriteCompiler.h < prev    next >
Encoding:
Text File  |  1996-10-29  |  1.4 KB  |  79 lines  |  [TEXT/KAHL]

  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. #if PRAGMA_ALIGN_SUPPORTED
  34. #pragma options align=mac68k
  35. #endif
  36.  
  37.  
  38.  
  39. #define    kMaxInstructionSize 8
  40.  
  41.  
  42. #ifdef __cplusplus
  43. extern "C" {
  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 SWCompileMaskScanLine(
  59.     PixelCodeHdl newPixCodeH,
  60.     Ptr maskPixelP,
  61.     long numberOfPixels,
  62.     Boolean isLastScanLine);
  63.  
  64. SW_FUNC OSErr SWGeneratePreamble(
  65.     PixelCodeHdl srcPixCodeH);
  66.  
  67. SW_FUNC OSErr SWGeneratePostamble(
  68.     PixelCodeHdl srcPixCodeH);
  69.  
  70. #ifdef __cplusplus
  71. }
  72. #endif
  73.  
  74. #if PRAGMA_ALIGN_SUPPORTED
  75. #pragma options align=reset
  76. #endif
  77.  
  78. #endif    /* __SPRITECOMPILER__ */
  79.