home *** CD-ROM | disk | FTP | other *** search
/ ftp.sunet.sepub/pictures / 2014.11.ftp.sunet.se-pictures.tar / ftp.sunet.se / pub / pictures / ACiD-artpacks / programs / unix / editors / gimp-plugins-unstable-0_99_23_tar.gz / gimp-plugins-unstable-0_99_23_tar / gimp-plugins-unstable-0.99.23 / Lighting / lighting_image.h < prev    next >
C/C++ Source or Header  |  1998-02-20  |  2KB  |  50 lines

  1. #ifndef LIGHTINGIMAGEH
  2. #define LIGHTINGIMAGEH
  3.  
  4. #include <stdlib.h>
  5. #include <string.h>
  6. #include <math.h>
  7.  
  8. #include <glib.h>
  9. #include <gdk/gdk.h>
  10. #include <gtk/gtk.h>
  11. #include <gck/gck.h>
  12. #include <libgimp/gimp.h>
  13.  
  14. #include "lighting_main.h"
  15.  
  16. extern GDrawable *input_drawable,*output_drawable;
  17. extern GPixelRgn source_region, dest_region;
  18.  
  19. extern GDrawable *bump_drawable;
  20. extern GPixelRgn bump_region;
  21.  
  22. extern GDrawable *env_drawable;
  23. extern GPixelRgn env_region;
  24.  
  25. extern guchar *preview_rgb_data;
  26. extern GdkImage *image;
  27.  
  28. extern glong maxcounter;
  29. extern gint imgtype,width,height,env_width,env_height,in_channels,out_channels;
  30. extern GckRGB background;
  31.  
  32. extern gint border_x1,border_y1,border_x2,border_y2;
  33.  
  34. extern guchar sinemap[256],spheremap[256],logmap[256];
  35.  
  36. guchar         peek_map        (GPixelRgn *region,gint x,gint y);
  37. GckRGB         peek            (gint x,gint y);
  38. GckRGB         peek_env_map    (gint x,gint y);
  39. void           poke            (gint x,gint y,GckRGB *color);
  40. gint           check_bounds    (gint x,gint y);
  41. GckVector3     int_to_pos      (gint x,gint y);
  42. GckVector3     int_to_posf     (gdouble x,gdouble y);
  43. extern void    pos_to_int      (gdouble x,gdouble y,gint *scr_x,gint *scr_y);
  44. extern void    pos_to_float    (gdouble x,gdouble y,gdouble *xf,gdouble *yf);
  45. extern GckRGB  get_image_color (gdouble u,gdouble v,gint *inside);
  46. extern gdouble get_map_value   (GPixelRgn *region, gdouble u,gdouble v, gint *inside);
  47. extern gint    image_setup     (GDrawable *drawable,gint interactive);
  48.  
  49. #endif
  50.