home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Games / SprocketInvaders / Source / Graphics.h < prev    next >
Encoding:
Text File  |  2000-09-28  |  2.2 KB  |  67 lines  |  [TEXT/MPS ]

  1. //•    ------------------------------------------------------------------------------------------    •
  2. //•
  3. //•    Copyright © 1996 Apple Computer, Inc., All Rights Reserved
  4. //•
  5. //•
  6. //•        You may incorporate this sample code into your applications without
  7. //•        restriction, though the sample code has been provided "AS IS" and the
  8. //•        responsibility for its operation is 100% yours.  However, what you are
  9. //•        not permitted to do is to redistribute the source as "DSC Sample Code"
  10. //•        after having made changes. If you're going to re-distribute the source,
  11. //•        we require that you make it clear in the source that the code was
  12. //•        descended from Apple Sample Code, but that you've made changes.
  13. //•
  14. //•        Authors:
  15. //•            Chris De Salvo
  16. //•
  17. //•    ------------------------------------------------------------------------------------------    •
  18.  
  19. #ifndef __GRAPHICS__
  20. #define __GRAPHICS__
  21.  
  22. //•    ------------------------------    Includes
  23.  
  24. #include <DrawSprocket.h>
  25.  
  26. //•    ------------------------------    Public Definitions
  27. //•    ------------------------------    Public Types
  28. //•    ------------------------------    Public Variables
  29.  
  30. extern DSpContextReference    gDisplayContext;
  31. extern DSpContextAttributes    gDisplayAttributes;
  32. extern GDHandle gGameGDH;
  33.  
  34. extern const RGBColor    rgbBlack;
  35. extern const RGBColor    rgbWhite;
  36. extern const RGBColor    rgbRed;
  37. extern const RGBColor    rgbBlue;
  38. extern const RGBColor    rgbYellow;
  39. extern const RGBColor    rgbGreen;
  40.  
  41. //•    ------------------------------    Public Functions
  42.  
  43. #ifdef __cplusplus
  44. extern "C" {
  45. #endif
  46.  
  47. extern void GraphicsInit(SInt16 modifiers);
  48. extern void GraphicsUpdateScreen(void);
  49. extern void GraphicsLoadBackground(SInt16 whichBG);
  50. extern void GraphicsRepairBackground(void);
  51. extern void GraphicsMergeCLUT(SInt16 clutID, UInt16 firstColor, UInt16 lastColor);
  52. extern void GraphicsOptimizeGWorld(GWorldPtr gw);
  53. extern void GraphicsSetRectDirty(RectPtr r);
  54. extern void GraphicsSetUnderlayRectDirty(RectPtr r);
  55. extern void GraphicsRepairScreenRect(RectPtr r);
  56. extern void GraphicsReset(void);
  57. extern void GraphicsGetUnderlayGrafPort(CGrafPtr *underlay, GDHandle *device);
  58. extern void GraphicsActive(void);
  59. extern void GraphicsPaused(void);
  60. extern void GraphicsInactive(void);
  61. extern void GraphicsDoUpdateEvent(void);
  62.  
  63. #ifdef __cplusplus
  64. }
  65. #endif
  66.  
  67. #endif