home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-08-06 | 1.1 KB | 50 lines | [TEXT/CWIE] |
- ///--------------------------------------------------------------------------------------
- // SWGameUtils.h
- //
- // Portions are copyright: © 1991-94 Tony Myles, All rights reserved worldwide.
- //
- // Description: some utility functions for games
- ///--------------------------------------------------------------------------------------
-
-
- #ifndef __SWGAMEUTILS__
- #define __SWGAMEUTILS__
-
- #ifndef __QUICKDRAW__
- #include <QuickDraw.h>
- #endif
-
- #ifndef __SOUND__
- #include "Sound.h"
- #endif
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
-
- void Randomize( void );
- short GetRandom(short min, short max);
- void CenterRect(Rect* rectA, Rect* rectB);
- void AlignRect(Rect* rectP);
- void AllowKeyUpEvents( void );
- void RestoreEventMask( void );
-
- RgnHandle SWHideMenuBar(GrafPtr grafPort);
- void KeepMenuBarHidden(GrafPtr grafPort);
- void SWShowMenuBar(GrafPtr grafPort);
-
- short GetDepthFromGlobalRect( Rect* globalRect );
- short GetDepthFromWindow( WindowPtr theWindow );
- short GetGDeviceDepth( GDHandle theGDH );
- void RestoreSystemPalette( void );
- Boolean HasSystem7( void );
-
-
- #ifdef __cplusplus
- }
- #endif
-
-
- #endif /* __SWGAMEUTILS__ */
-