home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / Emulatoren / UAE061.LZH / uae-0.6.1 / include / xwin.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-28  |  1.4 KB  |  54 lines

  1.  /* 
  2.   * UAE - The Un*x Amiga Emulator
  3.   * 
  4.   * Interface to the graphics system (X, SVGAlib)
  5.   * 
  6.   * (c) 1995 Bernd Schmidt
  7.   */
  8.  
  9. typedef long int xcolnr;
  10.  
  11. typedef (*allocfunc_type)(int, int, int, xcolnr *);
  12.  
  13. extern xcolnr xcolors[4096];
  14.  
  15. extern int buttonstate[3];
  16. extern int newmousecounters;
  17. extern int lastmx, lastmy;
  18.  
  19. extern int graphics_init(void);
  20. extern void graphics_leave(void);
  21. extern void handle_events(void);
  22.  
  23. extern void flush_line(int);
  24. extern void flush_block(int, int);
  25. extern void flush_screen(int, int);
  26. extern void calc_adjustment(void);
  27.  
  28. extern int debuggable(void);
  29. extern int needmousehack(void);
  30. extern void togglemouse(void);
  31. extern void LED(int);
  32.  
  33. extern unsigned long doMask(int p, int bits, int shift);
  34. extern void setup_maxcol(int);
  35. extern void alloc_colors256(int (*)(int, int, int, xcolnr *));
  36. extern void alloc_colors64k(int, int, int, int, int, int);
  37. extern void setup_greydither(int bits, allocfunc_type allocfunc);
  38. extern void setup_greydither_maxcol(int maxcol, allocfunc_type allocfunc);
  39. extern void setup_dither(int bits, allocfunc_type allocfunc);
  40. extern void DitherLine(UBYTE *l, UWORD *r4g4b4, int x, int y, WORD len, int bits);
  41.  
  42. struct vidbuf_description
  43. {
  44.     char *bufmem;
  45.     int rowbytes;
  46.     int pixbytes;
  47.     int maxblocklines;
  48.     int maxlinetoscr;
  49.     int x_adjust;
  50.     int maxline;
  51. };
  52.  
  53. extern struct vidbuf_description gfxvidinfo;
  54.