home *** CD-ROM | disk | FTP | other *** search
/ Graphics 16,000 / graphics-16000.iso / msdos / viewers / showgl19 / gstructs.h < prev    next >
C/C++ Source or Header  |  1992-03-26  |  1KB  |  40 lines

  1. /* gstructs.h */
  2.  
  3. /* definitions of external structures for use in compiling portions of
  4. graphix.c library outside of main body of graphix.c */
  5.  
  6. /* copyright 1988 - 1992, Robert C. Becker, Lantern Systems */
  7.  
  8. #ifndef STRCTS_DEFT    /* check for existance of previous definitions */
  9.  
  10. struct hp_position    /* public structures for external routines */
  11.     {
  12.     double xpos, ypos, rpos_x, rpos_y;
  13.     };
  14.  
  15. struct hp_scaling
  16.     {
  17.     double x_factor, x_offset, y_factor, y_offset, xmax, ymax;
  18.     double scr_xmin, scr_ymin;
  19.     };
  20.  
  21. struct hp_misc
  22.     {
  23.     unsigned max_x_dot, max_y_dot;
  24.     double x_ppm, y_ppm, gdu;
  25.     int pendown, g_input, mouse_status, degree;
  26.     unsigned wht_color;
  27.     };
  28.  
  29. struct w_params        /* struct for viewport, limit, & clip params */
  30.     {
  31.     double xmin, xmax, ymin, ymax;
  32.     };
  33.  
  34. #define STRCTS_DEFT
  35. #endif
  36.  
  37. extern struct hp_position  __x_y_rfs_;    /* position info */
  38. extern struct hp_scaling  __x_y_sfs_;    /* scale factors & offsets */
  39. extern struct hp_misc  __gr_msc__;    /* miscellaneous */
  40.