home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / xlibo2.zip / XLIBOS2.H < prev    next >
Text File  |  1993-09-18  |  1KB  |  52 lines

  1. /****************************************
  2. XLibOS/2  --  Graeme Blackley
  3.  
  4. 28/5/93
  5.  
  6.  
  7. ****************************************/
  8. struct SPRITE_INFO
  9. {
  10.      PCHAR image;
  11.      char xs,ys;
  12.      int x,y;
  13.      int spx,spy;
  14.      char xdir,ydir;
  15. };
  16.  
  17. struct IMAGE_TABLE
  18. {
  19.      PCHAR img[4];
  20. };
  21. struct PAGE_TABLE
  22. {
  23.      PCHAR p[4];
  24. };
  25.  
  26. int InitModeX(struct PAGE_TABLE *page_table);
  27. void XSelectPlane(char plane);
  28. int XCls(char color);
  29. int CloseModeX(void);
  30.  
  31.  
  32. void XWaitRetrace(void);
  33. void XWaitPeriod(void);
  34. void XSetVisualPage(char page);
  35. void XSetVisualPage(char page);
  36. void XSetPan(USHORT pan);
  37.  
  38.  
  39.  
  40. void XPixel(int x,int y, char Color);
  41. int  XReadPixel(int x, int y);
  42. void XBoxAt(int x1,int y1,int x2,int y2,char color);
  43.  
  44. void XCopyFromPageToPage(char SourcePage,int x,int y,int xs,int ys,char DestPage,int dx,int dy);
  45. void XBltImage(int x,int y,char xs, char ys, char *image);
  46. PCHAR XLoadImage(char filename[50],char *xs,char *ys);
  47. void XCBltImage(int x,int y, struct IMAGE_TABLE *image);
  48. void XSetRGB(char color,char red,char green,char blue);
  49. void XLoadCel(char filename[60],char *where);
  50. void XCLoadImage(char filename[60],struct IMAGE_TABLE *image);
  51.  
  52.