home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Xconq 7.1.0 / src / xconq-7.1.0 / kernel / print.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-07  |  1.4 KB  |  48 lines  |  [TEXT/R*ch]

  1. /* Definitions for printing in Xconq.
  2.    Copyright (C) 1994 Stanley T. Shebs and Massimo Campostrini.
  3.  
  4. Xconq is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.  See the file COPYING.  */
  8.  
  9. /* Parameters to control view printing. */
  10.  
  11. typedef struct a_print_parameters {
  12.     /* binary flags */
  13.     int corner_coord;
  14.     int terrain_dither;
  15.     int terrain_double;
  16.     int features;
  17.     int cell_summary;
  18.     int cm;  /* otherwise inches */
  19.     /* integer flags */
  20.     int names;
  21.     /* lengths */
  22.     double cell_size;
  23.     double cell_grid_width;
  24.     double border_width;
  25.     double connection_width;
  26.     double page_width;
  27.     double page_height;
  28.     double top_margin;
  29.     double bottom_margin;
  30.     double left_margin;
  31.     double right_margin;
  32.     /* gray levels */
  33.     double terrain_gray;
  34.     double enemy_gray;
  35. } PrintParameters;
  36.  
  37. /* Prototypes. */
  38.  
  39. extern void init_ascii_print PARAMS ((PrintParameters *pp));
  40. extern void dump_ascii_view PARAMS ((Side *side, PrintParameters *pp, char *filename));
  41.  
  42. extern void init_ps_print PARAMS ((PrintParameters *pp));
  43. extern void dump_ps_view PARAMS ((Side *side, PrintParameters *pp, char *filename));
  44.  
  45. extern int ps_load_bitmap PARAMS ((Side *side, int u));
  46. extern int store_bitmap PARAMS ((int u));
  47. extern int make_ps_images PARAMS ((void));
  48.