1
#ifndef __LIGHTING_IMAGE_H__
2
#define __LIGHTING_IMAGE_H__
4
extern GimpDrawable *input_drawable,*output_drawable;
5
extern GimpPixelRgn source_region, dest_region;
7
extern GimpDrawable *bump_drawable;
8
extern GimpPixelRgn bump_region;
10
extern GimpDrawable *env_drawable;
11
extern GimpPixelRgn env_region;
13
extern guchar *preview_rgb_data;
15
extern glong maxcounter;
16
extern gint imgtype,width,height,env_width,env_height,in_channels,out_channels;
17
extern GimpRGB background;
19
extern gint border_x1,border_y1,border_x2,border_y2;
21
extern guchar sinemap[256], spheremap[256], logmap[256];
23
guchar peek_map (GimpPixelRgn *region,
28
GimpRGB peek_env_map (gint x,
33
gint check_bounds (gint x,
35
GimpVector3 int_to_pos (gint x,
37
GimpVector3 int_to_posf (gdouble x,
39
void pos_to_int (gdouble x,
43
void pos_to_float (gdouble x,
47
GimpRGB get_image_color (gdouble u,
50
gdouble get_map_value (GimpPixelRgn *region,
54
gint image_setup (GimpDrawable *drawable,
57
#endif /* __LIGHTING_IMAGE_H__ */