home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 21 / af021.adf / general.h < prev    next >
C/C++ Source or Header  |  1978-06-12  |  2KB  |  95 lines

  1. /* general.h to be included in all modules */
  2.                 
  3. #include <exec/types.h> 
  4.  
  5. #include <exec/memory.h>    
  6.  
  7. #include <devices/gameport.h>
  8.  
  9. #include <devices/inputevent.h>
  10.  
  11. #include <graphics/gfxmacros.h>
  12.  
  13. #include <graphics/sprite.h>
  14.  
  15. #include <hardware/custom.h>
  16.  
  17. #include <hardware/dmabits.h>
  18.  
  19. #include <intuition/intuition.h>
  20.  
  21. #include <libraries/dos.h>
  22.  
  23. #define  INTUITION_VERSION            0     
  24.  
  25. #define  GRAPHICS_VERSION             0  
  26.  
  27. #define  SCREENPLANES                 5  
  28.  
  29. #define  SCREENWIDTH                320   
  30.  
  31. #define  SCREENHEIGHT               256
  32.  
  33. #define  SPRITE_NUMBER                6
  34.  
  35. #define  XSTART                     150
  36.  
  37. #define  YSTART                     120
  38.  
  39. #define  SPRITE_HEIGHT               15
  40.  
  41. BOOL begin_block(void);                            
  42.  
  43. void end_block(void);
  44.  
  45. BOOL allocate_resource(UBYTE function_number); 
  46.  
  47. void deallocate_resource(UBYTE function_number); 
  48.  
  49. #ifdef ALLOCATE_GLOBALS
  50.  
  51.         #define PREFIX
  52.  
  53.   #else
  54.   
  55.         #define PREFIX extern
  56.  
  57. #endif
  58.  
  59. PREFIX struct   IntuitionBase   *IntuitionBase;
  60.  
  61. PREFIX struct   GfxBase         *GfxBase;
  62.  
  63. PREFIX struct   Screen          *global_screen_p;
  64.  
  65. PREFIX struct   Window          *global_window_p;   
  66.  
  67. PREFIX struct   RastPort        *global_rastport_p;   
  68.  
  69. PREFIX struct   View            *global_view_p;
  70.  
  71. PREFIX struct   ViewPort        *global_viewport_p;
  72.  
  73. PREFIX struct   IOStdReq        *global_gameport_IO_request_p;
  74.  
  75. PREFIX struct   MsgPort         *global_gameport_message_port_p;
  76.  
  77. PREFIX struct   InputEvent      input_event;
  78.  
  79. PREFIX BOOL     global_exit_flag;
  80.  
  81. PREFIX UBYTE    global_controller_type;
  82.  
  83. extern struct Custom far custom;
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.