home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Add-Ons / After Dark / Joe Judge / Misc ƒ / AD module Project / module.c < prev   
Encoding:
C/C++ Source or Header  |  1994-11-26  |  2.4 KB  |  87 lines  |  [TEXT/KAHL]

  1.  
  2.  
  3. /* 
  4.  
  5. the GraphicsModule_main.c is a file included in 
  6. the After Dark Software Developers Kit from Berkeley Systems. It is FREE
  7. on most online archives, AOL, Compuserve, etc.
  8.  
  9. */
  10.  
  11. #include "GraphicsModule_Types.h"
  12. #include "Sounds.h"
  13.  
  14.  
  15. // these are the functs that need defined ...
  16. OSErr DoInitialize(Handle *storage, RgnHandle blankRgn, GMParamBlockPtr params);
  17. OSErr DoClose(Handle storage, RgnHandle blankRgn, GMParamBlockPtr params);
  18. OSErr DoBlank(Handle storage, RgnHandle blankRgn, GMParamBlockPtr params);
  19. OSErr DoDrawFrame(Handle storage, RgnHandle blankRgn, GMParamBlockPtr params);
  20. OSErr DoSetUp(RgnHandle blankRgn, short message, GMParamBlockPtr params);
  21. // these must be defined also
  22. OSErr DoSelected(RgnHandle blankRgn, short message, GMParamBlockPtr params);
  23. OSErr DoAboutBox(RgnHandle blankRgn, short message, GMParamBlockPtr params);
  24.  
  25.  
  26.  
  27. //////////////////////////////////////////////////////////////////////////////////////
  28. // this is the first funct called by AD ... we need to allocate and initialize here
  29. OSErr
  30. DoInitialize(Handle *storage, RgnHandle blankRgn, GMParamBlockPtr params) {
  31.  
  32.     return noErr;
  33. }
  34.  
  35. //////////////////////////////////////////////////////////////////////////////////////
  36. // the screen saver has been awakened! time to ditch the storage and wave goodbye
  37. OSErr 
  38. DoClose(Handle storage, RgnHandle blankRgn, GMParamBlockPtr params) {
  39.  
  40.  
  41.     return noErr;
  42. }
  43.  
  44.  
  45.  
  46. //////////////////////////////////////////////////////////////////////////////////////
  47. // make the screen go black
  48. OSErr
  49. DoBlank(Handle storage, RgnHandle blankRgn, GMParamBlockPtr params) {
  50.  
  51.     // darken the screen ...
  52.     // FillRgn(blankRgn, params->qdGlobalsCopy->qdBlack);
  53.     return noErr;
  54.  
  55. }
  56.  
  57. //////////////////////////////////////////////////////////////////////////////////////
  58. // this is the workhorse routine. It does the continual screen work to make
  59. // this screen saver what it is.
  60. OSErr 
  61. DoDrawFrame(Handle storage, RgnHandle blankRgn, GMParamBlockPtr params) 
  62. {
  63.     return noErr;
  64. }
  65.  
  66. //////////////////////////////////////////////////////////////////////////////////////
  67. // this is called when they click on something in the control panel
  68. OSErr 
  69. DoSetUp(RgnHandle blankRgn, short message, GMParamBlockPtr params) {
  70.     // button got pushed?? 
  71.     return noErr;
  72. }
  73.  
  74.  
  75.  
  76. OSErr DoSelected(RgnHandle blankRgn, short message, GMParamBlockPtr params) {
  77.     return noErr;
  78. }
  79.  
  80.  
  81.  
  82. OSErr DoAboutBox(RgnHandle blankRgn, short message, GMParamBlockPtr params) {
  83.     return noErr;
  84. }
  85.  
  86.  
  87.