File: mapobject_image.h

package info (click to toggle)
gimp 2.2.13-1etch4
  • links: PTS
  • area: main
  • in suites: etch
  • size: 94,832 kB
  • ctags: 47,113
  • sloc: ansic: 524,858; xml: 36,798; lisp: 9,870; sh: 9,409; makefile: 7,923; python: 2,674; perl: 2,589; yacc: 520; lex: 334
file content (61 lines) | stat: -rw-r--r-- 2,052 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef __MAPOBJECT_IMAGE_H__
#define __MAPOBJECT_IMAGE_H__

/* Externally visible variables */
/* ============================ */

extern GimpDrawable *input_drawable, *output_drawable;
extern GimpPixelRgn  source_region,dest_region;

extern GimpDrawable *box_drawables[6];
extern GimpPixelRgn  box_regions[6];

extern GimpDrawable *cylinder_drawables[2];
extern GimpPixelRgn  cylinder_regions[2];

extern guchar   *preview_rgb_data;

extern glong   maxcounter, old_depth, max_depth;
extern gint    imgtype, width,height, in_channels, out_channels;
extern GimpRGB  background;
extern gdouble oldtreshold;

extern gint border_x1, border_y1, border_x2, border_y2;

extern GimpTile *current_in_tile, *current_out_tile;

/* Externally visible functions */
/* ============================ */

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);
extern GimpRGB      peek                     (gint          x,
					     gint          y);
extern void        poke                     (gint          x,
					     gint          y,
					     GimpRGB      *color,
					     gpointer      data);
extern GimpVector3 int_to_pos               (gint          x,
					     gint          y);
extern void        pos_to_int               (gdouble       x,
					     gdouble       y,
					     gint         *scr_x,
					     gint         *scr_y);

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);

#endif  /* __MAPOBJECT_IMAGE_H__ */