Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Source/Graphics.h
//¥ ------------------------------------------------------------------------------------------ ¥ |
//¥ |
//¥ Copyright © 1996 Apple Computer, Inc., All Rights Reserved |
//¥ |
//¥ |
//¥ You may incorporate this sample code into your applications without |
//¥ restriction, though the sample code has been provided "AS IS" and the |
//¥ responsibility for its operation is 100% yours. However, what you are |
//¥ not permitted to do is to redistribute the source as "DSC Sample Code" |
//¥ after having made changes. If you're going to re-distribute the source, |
//¥ we require that you make it clear in the source that the code was |
//¥ descended from Apple Sample Code, but that you've made changes. |
//¥ |
//¥ Authors: |
//¥ Chris De Salvo |
//¥ |
//¥ ------------------------------------------------------------------------------------------ ¥ |
#ifndef __GRAPHICS__ |
#define __GRAPHICS__ |
//¥ ------------------------------ Includes |
#include <DrawSprocket.h> |
//¥ ------------------------------ Public Definitions |
//¥ ------------------------------ Public Types |
//¥ ------------------------------ Public Variables |
extern DSpContextReference gDisplayContext; |
extern DSpContextAttributes gDisplayAttributes; |
extern GDHandle gGameGDH; |
extern const RGBColor rgbBlack; |
extern const RGBColor rgbWhite; |
extern const RGBColor rgbRed; |
extern const RGBColor rgbBlue; |
extern const RGBColor rgbYellow; |
extern const RGBColor rgbGreen; |
//¥ ------------------------------ Public Functions |
#ifdef __cplusplus |
extern "C" { |
#endif |
extern void GraphicsInit(SInt16 modifiers); |
extern void GraphicsUpdateScreen(void); |
extern void GraphicsLoadBackground(SInt16 whichBG); |
extern void GraphicsRepairBackground(void); |
extern void GraphicsMergeCLUT(SInt16 clutID, UInt16 firstColor, UInt16 lastColor); |
extern void GraphicsOptimizeGWorld(GWorldPtr gw); |
extern void GraphicsSetRectDirty(RectPtr r); |
extern void GraphicsSetUnderlayRectDirty(RectPtr r); |
extern void GraphicsRepairScreenRect(RectPtr r); |
extern void GraphicsReset(void); |
extern void GraphicsGetUnderlayGrafPort(CGrafPtr *underlay, GDHandle *device); |
extern void GraphicsActive(void); |
extern void GraphicsPaused(void); |
extern void GraphicsInactive(void); |
extern void GraphicsDoUpdateEvent(void); |
#ifdef __cplusplus |
} |
#endif |
#endif |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-10-14