home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / mandel / defs.h next >
Encoding:
C/C++ Source or Header  |  1995-05-03  |  1.0 KB  |  49 lines

  1. #define MAXPOINTS 256
  2. #define MAXCOLOR 2048
  3. #define CM_RED 0
  4. #define CM_GREEN 1
  5. #define CM_BLUE 2
  6. #define CM_RAINBOW 3
  7. #define CM_MONO 4
  8. #define CM_STRIPE 6
  9. #define CM_NOGREEN 7
  10. #define CM_DEFAULT 8
  11. #define MAX_CMAPS (CM_DEFAULT + 1)
  12.  
  13. #ifndef ALLOCATE_LOCAL
  14. #define ALLOCATE_LOCAL(a) alloca(a)
  15. #define DEALLOCATE_LOCAL(a)
  16. #endif
  17.  
  18. typedef struct rubber_band_data_t {
  19.     int start_x, start_y;
  20.     int last_x, last_y;
  21.     GC gc;
  22.     } rubber_band_data_t;
  23.  
  24. typedef struct image_data_t {
  25.     Widget toplevel;
  26.     Widget area;
  27.     int M, K;
  28.     int max_color;
  29.     GC gc;
  30.     Pixmap pix;
  31.     Colormap cmaps[MAX_CMAPS];
  32.     Visual *visual;
  33.     XSetWindowAttributes wndo_attributes;
  34.     Dimension width, height;
  35.     float ip_min, ip_max, iq_min, iq_max;
  36.     double p_min, p_max, q_min, q_max;
  37.     rubber_band_data_t rubber_band;
  38.     XtWorkProcId work_proc;
  39.     Boolean run_work_proc;
  40.     Boolean rotate_forward;
  41.     int rotate_jump_count;
  42.     XColor *colors;
  43.     Cursor normal_cursor;
  44.     Cursor clock_cursor;
  45.     Cursor band_cursor;
  46.     int cm_current;
  47.     void (*create_image)();
  48.     } image_data_t, *image_data_ptr_t;
  49.