~ubuntu-branches/ubuntu/hoary/gimp/hoary

« back to all changes in this revision

Viewing changes to plug-ins/Lighting/lighting_image.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-04-04 14:51:23 UTC
  • Revision ID: james.westby@ubuntu.com-20050404145123-9py049eeelfymur8
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __LIGHTING_IMAGE_H__
 
2
#define __LIGHTING_IMAGE_H__
 
3
 
 
4
extern GimpDrawable *input_drawable,*output_drawable;
 
5
extern GimpPixelRgn  source_region, dest_region;
 
6
 
 
7
extern GimpDrawable *bump_drawable;
 
8
extern GimpPixelRgn  bump_region;
 
9
 
 
10
extern GimpDrawable *env_drawable;
 
11
extern GimpPixelRgn  env_region;
 
12
 
 
13
extern guchar   *preview_rgb_data;
 
14
 
 
15
extern glong  maxcounter;
 
16
extern gint   imgtype,width,height,env_width,env_height,in_channels,out_channels;
 
17
extern GimpRGB background;
 
18
 
 
19
extern gint   border_x1,border_y1,border_x2,border_y2;
 
20
 
 
21
extern guchar sinemap[256], spheremap[256], logmap[256];
 
22
 
 
23
guchar         peek_map        (GimpPixelRgn *region,
 
24
                                gint          x,
 
25
                                gint          y);
 
26
GimpRGB         peek            (gint          x,
 
27
                                gint          y);
 
28
GimpRGB         peek_env_map    (gint          x,
 
29
                                gint          y);
 
30
void           poke            (gint          x,
 
31
                                gint          y,
 
32
                                GimpRGB       *color);
 
33
gint           check_bounds    (gint          x,
 
34
                                gint          y);
 
35
GimpVector3    int_to_pos      (gint          x,
 
36
                                gint          y);
 
37
GimpVector3    int_to_posf     (gdouble       x,
 
38
                                gdouble       y);
 
39
void           pos_to_int      (gdouble       x,
 
40
                                gdouble       y,
 
41
                                gint         *scr_x,
 
42
                                gint         *scr_y);
 
43
void           pos_to_float    (gdouble       x,
 
44
                                gdouble       y,
 
45
                                gdouble      *xf,
 
46
                                gdouble      *yf);
 
47
GimpRGB         get_image_color (gdouble       u,
 
48
                                gdouble       v,
 
49
                                gint         *inside);
 
50
gdouble        get_map_value   (GimpPixelRgn *region,
 
51
                                gdouble       u,
 
52
                                gdouble       v,
 
53
                                gint         *inside);
 
54
gint           image_setup     (GimpDrawable *drawable,
 
55
                                gint          interactive);
 
56
 
 
57
#endif  /* __LIGHTING_IMAGE_H__ */