1
#ifndef __MAPOBJECT_IMAGE_H__
2
#define __MAPOBJECT_IMAGE_H__
4
/* Externally visible variables */
5
/* ============================ */
7
extern GimpDrawable *input_drawable, *output_drawable;
8
extern GimpPixelRgn source_region,dest_region;
10
extern GimpDrawable *box_drawables[6];
11
extern GimpPixelRgn box_regions[6];
13
extern GimpDrawable *cylinder_drawables[2];
14
extern GimpPixelRgn cylinder_regions[2];
16
extern guchar *preview_rgb_data;
18
extern glong maxcounter, old_depth, max_depth;
19
extern gint imgtype, width,height, in_channels, out_channels;
20
extern GimpRGB background;
21
extern gdouble oldtreshold;
23
extern gint border_x1, border_y1, border_x2, border_y2;
25
extern GimpTile *current_in_tile, *current_out_tile;
27
/* Externally visible functions */
28
/* ============================ */
30
extern gint image_setup (GimpDrawable *drawable,
32
extern glong in_xy_to_index (gint x,
34
extern glong out_xy_to_index (gint x,
36
extern gint checkbounds (gint x,
38
extern GimpRGB peek (gint x,
40
extern void poke (gint x,
44
extern GimpVector3 int_to_pos (gint x,
46
extern void pos_to_int (gdouble x,
51
extern GimpRGB get_image_color (gdouble u,
54
extern GimpRGB get_box_image_color (gint image,
57
extern GimpRGB get_cylinder_image_color (gint image,
61
#endif /* __MAPOBJECT_IMAGE_H__ */