gimp/plug-ins/lighting/lighting-image.h

70 lines
2.1 KiB
C
Raw Normal View History

#ifndef __LIGHTING_IMAGE_H__
#define __LIGHTING_IMAGE_H__
1998-06-11 06:04:59 +00:00
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
2019-07-10 12:19:13 +02:00
extern gint32 input_drawable_id;
extern gint32 output_drawable_id;
extern GeglBuffer *source_buffer;
extern GeglBuffer *dest_buffer;
1998-06-11 06:04:59 +00:00
2019-07-10 12:19:13 +02:00
extern gint32 bump_drawable_id;
extern GeglBuffer *bump_buffer;
extern const Babl *bump_format;
1998-06-11 06:04:59 +00:00
2019-07-10 12:19:13 +02:00
extern gint32 env_drawable_id;
extern GeglBuffer *env_buffer;
1998-06-11 06:04:59 +00:00
extern guchar *preview_rgb_data;
extern gint preview_rgb_stride;
extern cairo_surface_t *preview_surface;
1998-06-11 06:04:59 +00:00
2019-07-10 12:19:13 +02:00
extern glong maxcounter;
extern gint width,height,env_width,env_height;
plug-ins/libgck/gck/gck.h removed the GckRGB color type and all it's 2001-01-01 Michael Natterer <mitch@gimp.org> * plug-ins/libgck/gck/gck.h * plug-ins/libgck/gck/gckcolor.c: removed the GckRGB color type and all it's functions. * libgimp/Makefile.am * libgimp/gimpcolor.[ch]: new files containing the new GimpRGB color type and assorted functions. * libgimp/gimpcolorspace.[ch]: colorspace conversion routines for the new GimpRGB type. Also taken from LibGCK. * libgimp/gimp.h * libgimp/gimptypes.h: #include "gimpcolor.h". It's ugly to include it in both files but unavoidable to follow our new "*.c" file include policy. This will go away as libgimp will be chopped up into pieces anyway. * app/apptypes.h * app/asupsample.[ch] * app/blend.c * app/color_transfer.h * app/gradient_header.h: removed "color_t" and use GimpRGB instead. * plug-ins/Lighting/lighting_apply.c * plug-ins/Lighting/lighting_image.c * plug-ins/Lighting/lighting_image.h * plug-ins/Lighting/lighting_main.c * plug-ins/Lighting/lighting_main.h * plug-ins/Lighting/lighting_preview.c * plug-ins/Lighting/lighting_shade.c * plug-ins/Lighting/lighting_shade.h * plug-ins/MapObject/mapobject_apply.c * plug-ins/MapObject/mapobject_image.c * plug-ins/MapObject/mapobject_image.h * plug-ins/MapObject/mapobject_main.c * plug-ins/MapObject/mapobject_main.h * plug-ins/MapObject/mapobject_preview.c * plug-ins/MapObject/mapobject_shade.c * plug-ins/MapObject/mapobject_shade.h * modules/colorsel_triangle.c: s/GckRGB/GimpRGB/g * plug-ins/gdyntext/gdyntextcompat.h: check also for GIMP's minor version when deciding if to add a missing PDB wrapper. (All this compat cruft including libgimp/gimpcompat.h should go away ASAP)
2001-01-01 18:35:09 +00:00
extern GimpRGB background;
1998-06-11 06:04:59 +00:00
2019-07-10 12:19:13 +02:00
extern gint border_x1, border_y1, border_x2, border_y2;
extern guchar sinemap[256], spheremap[256], logmap[256];
2019-07-10 12:19:13 +02:00
guchar peek_map (GeglBuffer *buffer,
const Babl *format,
gint x,
gint y);
2019-07-10 12:19:13 +02:00
GimpRGB peek (gint x,
gint y);
2019-07-10 12:19:13 +02:00
GimpRGB peek_env_map (gint x,
gint y);
void poke (gint x,
gint y,
plug-ins/libgck/gck/gck.h removed the GckRGB color type and all it's 2001-01-01 Michael Natterer <mitch@gimp.org> * plug-ins/libgck/gck/gck.h * plug-ins/libgck/gck/gckcolor.c: removed the GckRGB color type and all it's functions. * libgimp/Makefile.am * libgimp/gimpcolor.[ch]: new files containing the new GimpRGB color type and assorted functions. * libgimp/gimpcolorspace.[ch]: colorspace conversion routines for the new GimpRGB type. Also taken from LibGCK. * libgimp/gimp.h * libgimp/gimptypes.h: #include "gimpcolor.h". It's ugly to include it in both files but unavoidable to follow our new "*.c" file include policy. This will go away as libgimp will be chopped up into pieces anyway. * app/apptypes.h * app/asupsample.[ch] * app/blend.c * app/color_transfer.h * app/gradient_header.h: removed "color_t" and use GimpRGB instead. * plug-ins/Lighting/lighting_apply.c * plug-ins/Lighting/lighting_image.c * plug-ins/Lighting/lighting_image.h * plug-ins/Lighting/lighting_main.c * plug-ins/Lighting/lighting_main.h * plug-ins/Lighting/lighting_preview.c * plug-ins/Lighting/lighting_shade.c * plug-ins/Lighting/lighting_shade.h * plug-ins/MapObject/mapobject_apply.c * plug-ins/MapObject/mapobject_image.c * plug-ins/MapObject/mapobject_image.h * plug-ins/MapObject/mapobject_main.c * plug-ins/MapObject/mapobject_main.h * plug-ins/MapObject/mapobject_preview.c * plug-ins/MapObject/mapobject_shade.c * plug-ins/MapObject/mapobject_shade.h * modules/colorsel_triangle.c: s/GckRGB/GimpRGB/g * plug-ins/gdyntext/gdyntextcompat.h: check also for GIMP's minor version when deciding if to add a missing PDB wrapper. (All this compat cruft including libgimp/gimpcompat.h should go away ASAP)
2001-01-01 18:35:09 +00:00
GimpRGB *color);
gint check_bounds (gint x,
gint y);
GimpVector3 int_to_pos (gint x,
gint y);
GimpVector3 int_to_posf (gdouble x,
gdouble y);
void pos_to_int (gdouble x,
gdouble y,
gint *scr_x,
gint *scr_y);
void pos_to_float (gdouble x,
gdouble y,
gdouble *xf,
gdouble *yf);
2019-07-10 12:19:13 +02:00
GimpRGB get_image_color (gdouble u,
gdouble v,
gint *inside);
2019-07-10 12:19:13 +02:00
gdouble get_map_value (GeglBuffer *buffer,
const Babl *format,
gdouble u,
gdouble v,
gint *inside);
2019-07-10 12:19:13 +02:00
gint image_setup (gint32 drawable_id,
gint interactive);
2019-07-10 12:19:13 +02:00
void bumpmap_setup (gint32 bumpmap_id);
void envmap_setup (gint32 envmap_id);
#endif /* __LIGHTING_IMAGE_H__ */