home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / p / prbgi097.zip / C.ZIP / BGI2.H next >
C/C++ Source or Header  |  1992-12-15  |  2KB  |  64 lines

  1. #ifndef __BGI2_H
  2. #define __BGI2_H
  3.  
  4. #include <DIR.H>
  5.  
  6.  
  7.  
  8. #define  PRT_DATA            /* far */
  9. #define  PRT__FAR_PTR        far
  10. #define  PRT_FUNC            huge pascal
  11. #if ForPascal
  12.     #define  PRT_CFUNC        far pascal
  13.     #define  PRT__HUGE_PROC   far
  14. #else
  15.    #if __HUGE__ || PRT_building_library
  16.       #define  PRT_CFUNC        huge
  17.       #define  PRT__HUGE_PROC   huge
  18.    #else
  19.       #define  PRT_CFUNC        far
  20.       #define  PRT__HUGE_PROC   huge
  21.    #endif
  22. #endif
  23.  
  24.  
  25.  
  26. #ifndef _PRT__pascal
  27.    #define   _PRT__pascal
  28. #endif
  29. #define MaxBGIDriver  16 // <<=== must be the same value as in GLOBAL.pas file }
  30. typedef void pascal (far *BGIaddressT)(void);
  31. typedef struct {
  32.                       unsigned userRegistered; }
  33.         BGIstatusT;
  34. #define Scrn_BGIgroup 1
  35. #define Prt_BGIgroup  2
  36.  
  37. #ifdef __cplusplus
  38. extern  "C" {
  39. #endif
  40.    void far* PRT_FUNC BGI_ReadDriver( const char far*name, const char far* bgiPath );
  41.    void far* PRT_FUNC BGI_LoadDriver( int driverNo, const char far* bgiPath );
  42.    int PRT_FUNC BGI_installuserdriver( const char far *filename,
  43.                                          int huge (*detect)(void),
  44.                                          int BGIgroup );
  45.    //int PRT_FUNC BGI_suspend(int far *BDriver);
  46.    //int PRT_FUNC BGI_Resume(int far *BDriver);
  47.    int PRT_FUNC BGI_ActiveDriverNo(void);
  48.    #define Scrn_BGIgroup 1
  49.    #define Prt_BGIgroup  2
  50.    int PRT_FUNC BGI_initgraph( int far *BDriver, int far *aMode,
  51.                                  const char far *aBGIPath, int BGIgroup );
  52.    int PRT_FUNC BGI_closegraph(void);
  53.    int PRT_FUNC BGI_registerfarbgidriver(void far pascal (*driver)(void) );
  54.    int PRT_FUNC BGI_getgraphmode( int BGIgroup );
  55.    void PRT_FUNC BGI_setgraphmode(int mode);
  56.     const char far* PRT_FUNC BGI_getmodename(int mode);
  57.    int PRT_FUNC BGI_getresolution(int far *x, int far*y);
  58.  
  59. #ifdef __cplusplus
  60. }
  61. #endif
  62.  
  63. #endif // __BGI2_H
  64.