home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Amiga / Jeux / demos / crystalPPC.lha / system.h < prev    next >
C/C++ Source or Header  |  1998-02-09  |  968b  |  72 lines

  1. #ifndef SYSTEM_H
  2. #define SYSTEM_H
  3.  
  4. #ifndef DEF_H
  5. //vonmir
  6. //#include "def.h"
  7. #include "def.h"
  8. //
  9. #endif
  10.  
  11. #ifdef COMP_WCC
  12. #include "watcom.h"
  13. #endif
  14.  
  15. #if defined(COMP_DJGPP) && !defined(DO_SVGALIB)
  16. # include "djgpp.h"
  17. #endif
  18.  
  19. #ifdef DO_X11
  20. #include "xlib/xwin.h"
  21. #endif
  22.  
  23. #ifdef DO_SVGALIB
  24. #include "svga.h"
  25. #endif
  26.  
  27. #ifdef DO_AMIGAOS
  28. //vonmir
  29. //#include "amigalib/amiga.h"
  30. #include "amiga.h"
  31. //
  32. #endif
  33.  
  34. struct colorRGB
  35. {
  36.   int red;
  37.   int green;
  38.   int blue;
  39. };
  40.  
  41. #define KEY_UP 1000
  42. #define KEY_DOWN 1001
  43. #define KEY_LEFT 1002
  44. #define KEY_RIGHT 1003
  45. #define KEY_PGUP 1004
  46. #define KEY_PGDN 1005
  47. #define KEY_ESC 1006
  48. #define KEY_BS 1007
  49. #define KEY_END 1008
  50.  
  51. extern char *graphicsData;
  52. extern colorRGB graphicsPalette[255];
  53. extern int graphicsPalette_alloc[256];
  54.  
  55. class System
  56. {
  57.  public:
  58.   System(int argc, char *argv[]);
  59.   ~System(void);
  60.  
  61.   int Open(void);
  62.   void Close(void);
  63.  
  64.   void Loop(void);
  65.  
  66.   Graphics *Graph;
  67.   Keyboard *Key;
  68.   int Shutdown;
  69. };
  70.  
  71. #endif // SYSTEM_H
  72.