2000-02-18 13:59:18 +00:00
|
|
|
#ifndef __LIGHTING_IMAGE_H__
|
|
|
|
#define __LIGHTING_IMAGE_H__
|
1998-06-11 06:04:59 +00:00
|
|
|
|
2000-08-22 03:27:14 +00:00
|
|
|
extern GimpDrawable *input_drawable,*output_drawable;
|
|
|
|
extern GimpPixelRgn source_region, dest_region;
|
1998-06-11 06:04:59 +00:00
|
|
|
|
2000-08-22 03:27:14 +00:00
|
|
|
extern GimpDrawable *bump_drawable;
|
|
|
|
extern GimpPixelRgn bump_region;
|
1998-06-11 06:04:59 +00:00
|
|
|
|
2000-08-22 03:27:14 +00:00
|
|
|
extern GimpDrawable *env_drawable;
|
|
|
|
extern GimpPixelRgn env_region;
|
1998-06-11 06:04:59 +00:00
|
|
|
|
2000-02-18 13:59:18 +00:00
|
|
|
extern guchar *preview_rgb_data;
|
1998-06-11 06:04:59 +00:00
|
|
|
|
2000-02-18 13:59:18 +00:00
|
|
|
extern glong maxcounter;
|
|
|
|
extern gint imgtype,width,height,env_width,env_height,in_channels,out_channels;
|
2001-01-01 18:35:09 +00:00
|
|
|
extern GimpRGB background;
|
1998-06-11 06:04:59 +00:00
|
|
|
|
2000-02-18 13:59:18 +00:00
|
|
|
extern gint border_x1,border_y1,border_x2,border_y2;
|
|
|
|
|
|
|
|
extern guchar sinemap[256], spheremap[256], logmap[256];
|
|
|
|
|
2000-08-22 03:27:14 +00:00
|
|
|
guchar peek_map (GimpPixelRgn *region,
|
2000-12-30 00:23:34 +00:00
|
|
|
gint x,
|
|
|
|
gint y);
|
2001-01-01 18:35:09 +00:00
|
|
|
GimpRGB peek (gint x,
|
2000-12-30 00:23:34 +00:00
|
|
|
gint y);
|
2001-01-01 18:35:09 +00:00
|
|
|
GimpRGB peek_env_map (gint x,
|
2000-12-30 00:23:34 +00:00
|
|
|
gint y);
|
|
|
|
void poke (gint x,
|
|
|
|
gint y,
|
2001-01-01 18:35:09 +00:00
|
|
|
GimpRGB *color);
|
2000-12-30 00:23:34 +00:00
|
|
|
gint check_bounds (gint x,
|
|
|
|
gint y);
|
|
|
|
GimpVector3 int_to_pos (gint x,
|
|
|
|
gint y);
|
|
|
|
GimpVector3 int_to_posf (gdouble x,
|
|
|
|
gdouble y);
|
|
|
|
void pos_to_int (gdouble x,
|
|
|
|
gdouble y,
|
|
|
|
gint *scr_x,
|
|
|
|
gint *scr_y);
|
|
|
|
void pos_to_float (gdouble x,
|
|
|
|
gdouble y,
|
|
|
|
gdouble *xf,
|
|
|
|
gdouble *yf);
|
2001-01-01 18:35:09 +00:00
|
|
|
GimpRGB get_image_color (gdouble u,
|
2000-12-30 00:23:34 +00:00
|
|
|
gdouble v,
|
|
|
|
gint *inside);
|
2000-08-22 03:27:14 +00:00
|
|
|
gdouble get_map_value (GimpPixelRgn *region,
|
2000-12-30 00:23:34 +00:00
|
|
|
gdouble u,
|
|
|
|
gdouble v,
|
|
|
|
gint *inside);
|
2000-08-22 03:27:14 +00:00
|
|
|
gint image_setup (GimpDrawable *drawable,
|
2000-12-30 00:23:34 +00:00
|
|
|
gint interactive);
|
2000-02-18 13:59:18 +00:00
|
|
|
|
|
|
|
#endif /* __LIGHTING_IMAGE_H__ */
|