home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-11-02 | 1.5 KB | 81 lines | [TEXT/CWIE] |
- {/--------------------------------------------------------------------------------------}
- { SWCommonHeaders.h}
- {}
- { Portions are copyright: c 1991-94 Tony Myles, All rights reserved worldwide.}
- {}
- { Description: common macros, constants, and stuff, used throughout SpriteWorld}
- {/--------------------------------------------------------------------------------------}
-
- unit SWCommonHeaders;
-
- interface
-
- uses
- {$IFC undefined THINK_Pascal}
- Types,
- {$ENDC}
- Retrace;
-
- {$PUSH}
- {$ALIGN MAC68K}
-
- type
- VBLTaskRec = record
- myVBLTask: VBLTask;
- hasVBLFired: Boolean;
- end;
- VBLTaskRecPtr = ^VBLTaskRec;
- VBLTaskRecHdl = ^VBLTaskRec;
-
- type
- SpriteWorldPtr = ^integer;
- SpriteWorldHdl = ^SpriteWorldPtr;
-
- const
- kBitsPerByte = 8;
-
- type
- PixelCode = integer;
- PixelCodePtr = ^PixelCode;
- PixelCodeHdl = ^PixelCodePtr;
-
- type
- {$IFC undefined THINK_Pascal}
- BlitFuncPtr = procedure (srcStride, destStride: longint; srcBaseAddr: Ptr; destBaseAddr: Ptr);
- {$ELSEC}
- BlitFuncPtr = ProcPtr;
- {$ENDC}
-
- {$IFC not undefined THINK_Pascal}
- type
- {CAP-10/29}
- UInt32 = LONGINT;
- SInt16 = INTEGER;
-
- UnsignedWide = record
- hi: UInt32;
- lo: UInt32;
- end;
-
- function LMGetSysEvtMask: SInt16;
- inline
- $3EB8, $0144; { MOVE.w $0144,(SP) }
-
- function LMGetMBarHeight: SInt16;
- inline
- $3EB8, $0BAA; { MOVE.w $0BAA,(SP) }
-
- procedure LMSetMBarHeight (value: SInt16);
- inline
- $31DF, $0BAA; { MOVE.w (SP)+,$0BAA }
-
- {$ENDC}
-
- {$ALIGN RESET}
- {$POP}
-
- {$IFC not undefined THINK_Pascal}
- implementation
- {$ENDC}
- end.
-