home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 31 / CDASC_31_1996_juillet_aout.iso / vrac / gamelib.zip / GRLIB.H < prev    next >
C/C++ Source or Header  |  1996-04-24  |  1KB  |  37 lines

  1. #include "stdio.h"
  2.  
  3. //use extern "C" for C++ programs
  4. //extern "C" {
  5. /*sub function declarations*/
  6. int KeyW(void);
  7. void decodePCX(FILE *fp2,int width,int depth,int pos);
  8. void SetPal1(void);
  9. /*main function declarartions*/
  10. void SetPal(void);
  11. void SetVGA(void);
  12. void SetTXT(void);
  13. void Quit(char message[]);
  14. char InitGameBuff(unsigned long buffw,unsigned long buffd);
  15. void ClearBuffer(unsigned char colour);
  16. void DisplayBuffer(int x,int y);
  17. void DWinBuffer(int buffx,int buffy,int scrx,int scry,int width,int height);
  18. void PutPixel(int x,int y,unsigned char colour);
  19. void Rectangle(int x,int y,int width,int height,unsigned char colour,char fill);
  20. char LoadPic(char name[],int position);
  21. char LoadPic1(char name[],int position);
  22. char LoadMBM(char name[],int position);
  23. void SetColour(unsigned char colour,unsigned char red,unsigned char green,unsigned char blue);
  24. void PutPic(int no,int X,int Y);
  25. void PutPicM(int no,int X,int Y);
  26. void PutMBM(int no,int X,int Y);
  27. void Line(int x1,int y1,int x2,int y2,int colour);
  28. void CutOut(int x,int y,int width,int height,unsigned char *ptr);
  29. void PutBitmap(int x,int y,unsigned char *ptr);
  30. unsigned char TestBuffPix(int x,int y);
  31. void InitKeyScan(void); void CloseKeyScan(void);
  32. char CheckKey(char kno);
  33. void FreeMem(void);
  34. void LineVGA(int x1,int y1,int x2,int y2,int colour);
  35. void PutPicVGA(int no,int X,int Y);
  36. //};
  37.