home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / plug-ins / MapObject / mapobject_image.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-24  |  1.9 KB  |  62 lines

  1. #ifndef __MAPOBJECT_IMAGE_H__
  2. #define __MAPOBJECT_IMAGE_H__
  3.  
  4. /* Externally visible variables */
  5. /* ============================ */
  6.  
  7. extern GimpDrawable *input_drawable,*output_drawable;
  8. extern GimpPixelRgn  source_region,dest_region;
  9.  
  10. extern GimpDrawable *box_drawables[6];
  11. extern GimpPixelRgn  box_regions[6];
  12.  
  13. extern GimpDrawable *cylinder_drawables[2];
  14. extern GimpPixelRgn  cylinder_regions[2];
  15.  
  16. extern guchar   *preview_rgb_data;
  17. extern GdkImage *image;
  18.  
  19. extern glong   maxcounter, old_depth, max_depth;
  20. extern gint    imgtype, width,height, in_channels, out_channels;
  21. extern GckRGB  background;
  22. extern gdouble oldtreshold;
  23.  
  24. extern gint border_x1, border_y1, border_x2, border_y2;
  25.  
  26. extern GimpTile *current_in_tile, *current_out_tile;
  27.  
  28. /* Externally visible functions */
  29. /* ============================ */
  30.  
  31. extern gint        image_setup     (GimpDrawable *drawable,
  32.                     gint       interactive);
  33. extern glong       in_xy_to_index  (gint       x,
  34.                     gint       y);
  35. extern glong       out_xy_to_index (gint       x,
  36.                     gint       y);
  37. extern gint        checkbounds     (gint       x,
  38.                     gint       y);
  39. extern GckRGB      peek            (gint       x,
  40.                     gint       y);
  41. extern void        poke            (gint       x,
  42.                     gint       y,
  43.                     GckRGB    *color);
  44. extern GimpVector3 int_to_pos      (gint      x,
  45.                     gint      y);
  46. extern void        pos_to_int      (gdouble    x,
  47.                     gdouble    y,
  48.                     gint      *scr_x,
  49.                     gint      *scr_y);
  50.  
  51. extern GckRGB      get_image_color          (gdouble  u,
  52.                          gdouble  v,
  53.                          gint    *inside);
  54. extern GckRGB      get_box_image_color      (gint     image,
  55.                          gdouble  u,
  56.                          gdouble  v);
  57. extern GckRGB      get_cylinder_image_color (gint     image,
  58.                          gdouble  u,
  59.                          gdouble  v);
  60.  
  61. #endif  /* __MAPOBJECT_IMAGE_H__ */
  62.