2000-02-18 Michael Natterer <mitch@gimp.org> * libgimp/Makefile.am * libgimp/gimppixmap.[ch]: simple widget which creates a pixmap from XPM data without the need to worry about it's parent's "realized" state and other stuff. * libgimp/gimpcolorbutton.c: removed a gtk-doc comment from an internal function. * libgimp/gimpwidgets.[ch]: new function gimp_pixmap_button_new(). * app/gimpui.h * libgimp/gimpui.h: include gimppixmap.h. * app/gradient.c * app/nav_window.c * app/palette.c * libgimp/gimpfileselection.[ch] * libgimp/gimppatheditor.c * libgimp/gimpquerybox.c * plug-ins/FractalExplorer/FractalExplorer.c: use GimpPixmaps. * plug-ins/Lighting/* * plug-ins/MapObject/*: some more cleanups: reduced # of includes, made private functions static, use GimpPixmaps. * plug-ins/libgck/Makefile.am * plug-ins/libgck/NEWS * plug-ins/libgck/README * plug-ins/libgck/TODO * plug-ins/libgck/docs/html/gck.html * plug-ins/libgck/docs/html/gck_application_window.html * plug-ins/libgck/docs/html/gck_dialog_window.html * plug-ins/libgck/docs/html/gckmath.html * plug-ins/libgck/docs/html/gckui.html * plug-ins/libgck/docs/html/gckvector.html: removed because they documented files which don't exist any more.
102 lines
1.6 KiB
C
102 lines
1.6 KiB
C
#ifndef __LIGHTING_MAIN_H__
|
|
#define __LIGHTING_MAIN_H__
|
|
|
|
/* Defines and stuff */
|
|
/* ================= */
|
|
|
|
#define TILE_CACHE_SIZE 16
|
|
|
|
/* Typedefs */
|
|
/* ======== */
|
|
|
|
typedef enum
|
|
{
|
|
POINT_LIGHT,
|
|
DIRECTIONAL_LIGHT,
|
|
SPOT_LIGHT,
|
|
NO_LIGHT
|
|
} LightType;
|
|
|
|
enum
|
|
{
|
|
LINEAR_MAP,
|
|
LOGARITHMIC_MAP,
|
|
SINUSOIDAL_MAP,
|
|
SPHERICAL_MAP
|
|
};
|
|
|
|
enum
|
|
{
|
|
IMAGE_BUMP,
|
|
WAVES_BUMP
|
|
};
|
|
|
|
typedef struct
|
|
{
|
|
gdouble ambient_int;
|
|
gdouble diffuse_int;
|
|
gdouble diffuse_ref;
|
|
gdouble specular_ref;
|
|
gdouble highlight;
|
|
GckRGB color;
|
|
} MaterialSettings;
|
|
|
|
typedef struct
|
|
{
|
|
LightType type;
|
|
GimpVector3 position;
|
|
GimpVector3 direction;
|
|
GckRGB color;
|
|
gdouble intensity;
|
|
} LightSettings;
|
|
|
|
typedef struct
|
|
{
|
|
gint32 drawable_id;
|
|
gint32 bumpmap_id;
|
|
gint32 envmap_id;
|
|
|
|
/* Render variables */
|
|
/* ================ */
|
|
|
|
GimpVector3 viewpoint;
|
|
GimpVector3 planenormal;
|
|
LightSettings lightsource;
|
|
MaterialSettings material;
|
|
MaterialSettings ref_material;
|
|
|
|
gdouble pixel_treshold;
|
|
gdouble bumpmax,bumpmin;
|
|
/* gdouble wave_cx,wave_cy;
|
|
gdouble wave_lx,wave_ly;
|
|
gdouble wave_amp,wave_ph; */
|
|
gint max_depth;
|
|
gint bumpmaptype;
|
|
/* gint bumptype; */
|
|
|
|
/* Flags */
|
|
/* ===== */
|
|
|
|
gint antialiasing;
|
|
gint create_new_image;
|
|
gint transparent_background;
|
|
gint tooltips_enabled;
|
|
gint bump_mapped;
|
|
gint env_mapped;
|
|
gint ref_mapped;
|
|
gint bumpstretch;
|
|
gint previewquality;
|
|
|
|
/* Misc */
|
|
/* ==== */
|
|
|
|
gdouble preview_zoom_factor;
|
|
} LightingValues;
|
|
|
|
/* Externally visible variables */
|
|
/* ============================ */
|
|
|
|
extern LightingValues mapvals;
|
|
extern GckRGB background;
|
|
|
|
#endif /* __LIGHTING_MAIN_H__ */
|