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

  1. #ifndef __LIGHTING_IMAGE_H__
  2. #define __LIGHTING_IMAGE_H__
  3.  
  4. extern GimpDrawable *input_drawable,*output_drawable;
  5. extern GimpPixelRgn  source_region, dest_region;
  6.  
  7. extern GimpDrawable *bump_drawable;
  8. extern GimpPixelRgn  bump_region;
  9.  
  10. extern GimpDrawable *env_drawable;
  11. extern GimpPixelRgn  env_region;
  12.  
  13. extern guchar   *preview_rgb_data;
  14. extern GdkImage *image;
  15.  
  16. extern glong  maxcounter;
  17. extern gint   imgtype,width,height,env_width,env_height,in_channels,out_channels;
  18. extern GckRGB background;
  19.  
  20. extern gint   border_x1,border_y1,border_x2,border_y2;
  21.  
  22. extern guchar sinemap[256], spheremap[256], logmap[256];
  23.  
  24. guchar         peek_map        (GimpPixelRgn *region,
  25.                 gint       x,
  26.                 gint       y);
  27. GckRGB         peek            (gint       x,
  28.                 gint       y);
  29. GckRGB         peek_env_map    (gint       x,
  30.                 gint       y);
  31. void           poke            (gint       x,
  32.                 gint       y,
  33.                 GckRGB    *color);
  34. gint           check_bounds    (gint       x,
  35.                 gint       y);
  36. GimpVector3    int_to_pos      (gint       x,
  37.                 gint       y);
  38. GimpVector3    int_to_posf     (gdouble    x,
  39.                 gdouble    y);
  40. void           pos_to_int      (gdouble    x,
  41.                 gdouble    y,
  42.                 gint      *scr_x,
  43.                 gint      *scr_y);
  44. void           pos_to_float    (gdouble    x,
  45.                 gdouble    y,
  46.                 gdouble   *xf,
  47.                 gdouble   *yf);
  48. GckRGB         get_image_color (gdouble    u,
  49.                 gdouble    v,
  50.                 gint      *inside);
  51. gdouble        get_map_value   (GimpPixelRgn *region,
  52.                 gdouble    u,
  53.                 gdouble    v,
  54.                 gint      *inside);
  55. gint           image_setup     (GimpDrawable *drawable,
  56.                 gint       interactive);
  57.  
  58. #endif  /* __LIGHTING_IMAGE_H__ */
  59.