home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 May / macformat-024.iso / Shareware City / Developers / BoxMaker++ / Monochromize ƒ / gworld.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-20  |  1.0 KB  |  38 lines  |  [TEXT/KAHL]

  1. #pragma once
  2. //
  3. // 941006: testing this code for the first time in a long time. It appears
  4. // that one needs an instance of a 'venster' or a 'fullscreen' before one
  5. // can create a 'gworld'. If one does:
  6. //
  7. // gworld  earth;
  8. // window broken;
  9. //
  10. // the Mac crashes inside a 'ShowWindow' call in window::window
  11. // I don't have time to study this in full, but I suspect that 'gworld::gworld'
  12. // somehow is buggy. Alternatively there is a bug in the System (possibly only
  13. // in system 7.5) which precludes the use of GWorlds without the use of windows.
  14. // It also might be a bug in the Think Debugger (7.0.4), since an application
  15. // I wrote to test this hypothesis did not hang.
  16. //
  17. class gworld : public grafport
  18. {
  19.     public:    
  20.         gworld( int breedte = 320, int hoogte = 200, int diepte = 8, CTabHandle cTable = nil);
  21.         ~gworld();
  22.  
  23.         int diepte() const;
  24.         //
  25.         // dump and load do not do extensive error checking
  26.         //
  27.         OSErr dump( short defile) const;
  28.         OSErr load( short defile) const;
  29.  
  30.     private:
  31.         int de_diepte;
  32. };
  33.  
  34. inline int gworld::diepte() const
  35. {
  36.     return de_diepte;
  37. }
  38.