2000-02-18 07:48:13 +08:00
|
|
|
#ifndef __MAPOBJECT_IMAGE_H__
|
|
|
|
#define __MAPOBJECT_IMAGE_H__
|
1998-03-20 10:42:24 +08:00
|
|
|
|
|
|
|
/* Externally visible variables */
|
|
|
|
/* ============================ */
|
|
|
|
|
2000-12-30 08:23:34 +08:00
|
|
|
extern GimpDrawable *input_drawable, *output_drawable;
|
2000-08-22 11:27:14 +08:00
|
|
|
extern GimpPixelRgn source_region,dest_region;
|
1998-03-20 10:42:24 +08:00
|
|
|
|
2000-08-22 11:27:14 +08:00
|
|
|
extern GimpDrawable *box_drawables[6];
|
|
|
|
extern GimpPixelRgn box_regions[6];
|
1998-07-16 08:45:41 +08:00
|
|
|
|
2000-08-22 11:27:14 +08:00
|
|
|
extern GimpDrawable *cylinder_drawables[2];
|
|
|
|
extern GimpPixelRgn cylinder_regions[2];
|
1998-07-17 04:14:54 +08:00
|
|
|
|
2011-02-13 17:00:48 +08:00
|
|
|
extern guchar *preview_rgb_data;
|
|
|
|
extern gint preview_rgb_stride;
|
|
|
|
extern cairo_surface_t *preview_surface;
|
1998-03-20 10:42:24 +08:00
|
|
|
|
2000-02-18 07:48:13 +08:00
|
|
|
extern glong maxcounter, old_depth, max_depth;
|
2011-02-20 20:00:13 +08:00
|
|
|
extern gint imgtype, width,height, in_channels, out_channels, image_id;
|
2001-01-02 02:35:09 +08:00
|
|
|
extern GimpRGB background;
|
1998-03-20 10:42:24 +08:00
|
|
|
extern gdouble oldtreshold;
|
|
|
|
|
2000-02-18 07:48:13 +08:00
|
|
|
extern gint border_x1, border_y1, border_x2, border_y2;
|
1998-03-20 10:42:24 +08:00
|
|
|
|
2000-08-22 11:27:14 +08:00
|
|
|
extern GimpTile *current_in_tile, *current_out_tile;
|
1998-03-20 10:42:24 +08:00
|
|
|
|
|
|
|
/* Externally visible functions */
|
|
|
|
/* ============================ */
|
|
|
|
|
2000-12-30 08:23:34 +08:00
|
|
|
extern gint image_setup (GimpDrawable *drawable,
|
|
|
|
gint interactive);
|
|
|
|
extern glong in_xy_to_index (gint x,
|
|
|
|
gint y);
|
|
|
|
extern glong out_xy_to_index (gint x,
|
|
|
|
gint y);
|
|
|
|
extern gint checkbounds (gint x,
|
|
|
|
gint y);
|
2001-01-02 02:35:09 +08:00
|
|
|
extern GimpRGB peek (gint x,
|
2000-12-30 08:23:34 +08:00
|
|
|
gint y);
|
|
|
|
extern void poke (gint x,
|
|
|
|
gint y,
|
2001-01-23 08:53:12 +08:00
|
|
|
GimpRGB *color,
|
|
|
|
gpointer data);
|
2000-12-30 08:23:34 +08:00
|
|
|
extern GimpVector3 int_to_pos (gint x,
|
|
|
|
gint y);
|
|
|
|
extern void pos_to_int (gdouble x,
|
|
|
|
gdouble y,
|
|
|
|
gint *scr_x,
|
|
|
|
gint *scr_y);
|
|
|
|
|
2001-01-23 08:53:12 +08:00
|
|
|
extern GimpRGB get_image_color (gdouble u,
|
|
|
|
gdouble v,
|
|
|
|
gint *inside);
|
|
|
|
extern GimpRGB get_box_image_color (gint image,
|
|
|
|
gdouble u,
|
|
|
|
gdouble v);
|
|
|
|
extern GimpRGB get_cylinder_image_color (gint image,
|
|
|
|
gdouble u,
|
|
|
|
gdouble v);
|
1998-03-20 10:42:24 +08:00
|
|
|
|
2000-02-18 07:48:13 +08:00
|
|
|
#endif /* __MAPOBJECT_IMAGE_H__ */
|