home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / GRAPHICS / SHOWGL10.ZIP / GRAPH.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-28  |  3.5 KB  |  104 lines

  1. /* header file for graphix.c applications.  Function prototypes & #defines */
  2. /* copyright 1988, 1989, 1990, 1991 Robert C. Becker, Lantern Systems */
  3.  
  4. #define        VIDEO        0x10    /* BIOS video int. */
  5. #define        WRT_PIX        0x0c    /* BIOS write pixel request */
  6. #define        SET_MODE    0    /* BIOS set video mode: al = video mode */
  7. #define        VIDEO_STATE    0x0f    /* BIOS get video state */
  8.  
  9. #define        CRT        1    /* text CRT on HP systems, here just CRT */
  10. #define        KBD        2    /* same as on HP systems */
  11. #define        MOUSE        3    /* no previous definition */
  12.  
  13. #define        CGA_320x200    &hpc_320_200_hp        /* BIOS CGA 320x200, 4 color */
  14. #define        CGA_640x200    &hpc_640_200_hp        /* BIOS CGA 640x200 BW */
  15. #define        ATT_640x400    &hpa_640_400_hp        /* AT&T 640x400 BW, tiny type */
  16. #define        HGC_720x348    &hph_720_348_hp        /* Hercules HGC and HGC+ 720x348 BW */
  17. #define        EGA_320x200    &hpe_320_200_hp        /* IBM EGA low-res 320x200, 16 color */
  18. #define        EGA_640x200    &hpe_640_200_hp        /* IBM EGA med-res 640x200, 16 color */
  19. #define        MEGA_640x350    &hpem_640_350_hp    /* IBM EGA high-res 640x350, BW */
  20. #define        EGA_640x350    &hpe_640_350_hp        /* IBM EGA high-res 640x350, 16 color */
  21. #define        VGA_640x480    &hpv_640_480_hp        /* IBM VGA high-res 640x480, 16 color */
  22. #define        VGA_320x200    &hpv_320_200_hp        /* IBM VGA lo-res 320x200, 256 color */
  23. #define        MCGA_640x480    &hpm_640_480_hp        /* IBM MCGA high-res 640x480, BW */
  24.  
  25. #ifndef CHAR_STR_DEFT
  26. struct char___deft
  27.     {
  28.     char *fontname;
  29.     int _far **char_v;
  30.     unsigned char _far **char_p;
  31.     double ascender;
  32.     double descender;
  33.     double width;
  34.     double base;
  35.     double center;
  36.     double top;
  37.     double x_inc;
  38.     double y_inc;
  39.     double scale;
  40.     };
  41. #define        CHAR_STR_DEFT    /* char description struct defined */
  42. #endif
  43.  
  44. struct char___deft _far *std_font ( void );    /* pointer to struct defining std char font */
  45.  
  46. void arc ( double, int, double, double );
  47. void axes ( double, double, double, double, int, int, double );
  48. void cdir ( double );
  49. void char_xspace ( double, double );
  50. void clip ( double, double, double, double );
  51. void clip_off ( void );
  52. void clip_on ( void );
  53. void couple_pdir ( void );
  54. void csize ( double, double, double );
  55. void csize_gdu (void);
  56. void csize_mm (void);
  57. void csize_udu (void);
  58. void deg ( void );
  59. void delete_font ( int );
  60. int  digitize ( double *, double * );
  61. void disp_fns ( enum DFNON__OFF );
  62. void draw ( double, double );
  63. void frame ( void );
  64. void gclear ( void );
  65. void g_init ( struct _vid_x_parm_ * );
  66. int  graphics_input ( int );
  67. void graphics_off ( void );
  68. void grid ( double, double, double, double, int, int, double );
  69. void idraw ( double, double );
  70. void imove ( double, double );
  71. void iplot ( double, double, int );
  72. void labelf ( char *, ... );
  73. void ldir ( double );
  74. void limit ( double, double, double, double );
  75. void line_type ( int, double );
  76. void lorg ( int );
  77. void move ( double, double );
  78. void mscale ( double, double );
  79. void pen ( int );
  80. void penup ( void );
  81. void pdir ( double );
  82. void pivot ( double );
  83. void plot ( double, double, int );
  84. void rad ( void );
  85. double ratio ( void );
  86. void rdraw ( double, double );
  87. void rectangle ( double, double, double, double );
  88. int  read_locator ( double *, double * );
  89. int register_font ( struct char___deft _far * );
  90. void rmove ( double, double );
  91. void rplot ( double, double, int );
  92. void show ( double, double, double, double );
  93. int select_font ( int );
  94. void setgu ( void );
  95. void setuu ( void );
  96. void track ( int );
  97. void uncouple_pdir ( void );
  98. void viewport ( double, double, double, double );
  99. int  where ( double *, double * );
  100. void window ( double, double, double, double );
  101.  
  102.  
  103.  
  104.