
2008-08-11 Michael Natterer <mitch@gimp.org> * plug-ins/common/cml-explorer.c * plug-ins/common/depth-merge.c * plug-ins/common/file-cel.c * plug-ins/common/oilify.c * plug-ins/file-bmp/bmp-write.c * plug-ins/file-bmp/bmp.[ch] * plug-ins/file-ico/ico-dialog.c * plug-ins/file-ico/ico-save.c * plug-ins/file-ico/ico.h * plug-ins/flame/flame.c * plug-ins/fractal-explorer/fractal-explorer-dialogs.c * plug-ins/fractal-explorer/fractal-explorer.[ch] * plug-ins/gimpressionist/gimp.c * plug-ins/gimpressionist/gimpressionist.[ch] * plug-ins/gimpressionist/orientmap.c * plug-ins/gimpressionist/presets.c * plug-ins/gimpressionist/sizemap.c * plug-ins/help-browser/dialog.[ch] * plug-ins/help-browser/help-browser.c * plug-ins/ifs-compose/ifs-compose.c * plug-ins/imagemap/imap_default_dialog.c * plug-ins/imagemap/imap_main.[ch] * plug-ins/lighting/lighting-main.[ch] * plug-ins/lighting/lighting-ui.c * plug-ins/map-object/map-object-main.[ch] * plug-ins/map-object/map-object-ui.c * plug-ins/selection-to-path/selection-to-path.c * plug-ins/win-snap/winsnap.c: use PLUG_IN_BINARY and PLUG_IN_PROC defines consistently instead of using literal strings or other random defines. Define them if not already there or move them to plugin-global places. * plug-ins/win-snap/Makefile.am: rename the binary to "win-snap". * plug-ins/win-snap/winsnap.c: changed accordingly. svn path=/trunk/; revision=26509
88 lines
1.4 KiB
C
88 lines
1.4 KiB
C
#ifndef __MAPOBJECT_MAIN_H__
|
|
#define __MAPOBJECT_MAIN_H__
|
|
|
|
/* Defines and stuff */
|
|
/* ================= */
|
|
|
|
#define PLUG_IN_PROC "plug-in-map-object"
|
|
#define PLUG_IN_BINARY "map-object"
|
|
|
|
#define TILE_CACHE_SIZE 16
|
|
|
|
/* Typedefs */
|
|
/* ======== */
|
|
|
|
typedef enum
|
|
{
|
|
POINT_LIGHT,
|
|
DIRECTIONAL_LIGHT,
|
|
NO_LIGHT
|
|
} LightType;
|
|
|
|
typedef enum
|
|
{
|
|
MAP_PLANE,
|
|
MAP_SPHERE,
|
|
MAP_BOX,
|
|
MAP_CYLINDER
|
|
} MapType;
|
|
|
|
/* Typedefs */
|
|
/* ======== */
|
|
|
|
typedef struct
|
|
{
|
|
gdouble ambient_int;
|
|
gdouble diffuse_int;
|
|
gdouble diffuse_ref;
|
|
gdouble specular_ref;
|
|
gdouble highlight;
|
|
GimpRGB color;
|
|
} MaterialSettings;
|
|
|
|
typedef struct
|
|
{
|
|
LightType type;
|
|
GimpVector3 position;
|
|
GimpVector3 direction;
|
|
GimpRGB color;
|
|
gdouble intensity;
|
|
} LightSettings;
|
|
|
|
typedef struct
|
|
{
|
|
GimpVector3 viewpoint,firstaxis,secondaxis,normal,position,scale;
|
|
LightSettings lightsource;
|
|
|
|
MaterialSettings material;
|
|
MaterialSettings refmaterial;
|
|
|
|
MapType maptype;
|
|
|
|
gint antialiasing;
|
|
gint create_new_image;
|
|
gint transparent_background;
|
|
gint tiled;
|
|
gint showgrid;
|
|
gint showcaps;
|
|
|
|
gdouble zoom;
|
|
gdouble alpha,beta,gamma;
|
|
gdouble maxdepth;
|
|
gdouble pixeltreshold;
|
|
gdouble radius;
|
|
gdouble cylinder_radius;
|
|
gdouble cylinder_length;
|
|
|
|
gint32 boxmap_id[6];
|
|
gint32 cylindermap_id[2];
|
|
|
|
} MapObjectValues;
|
|
|
|
/* Externally visible variables */
|
|
/* ============================ */
|
|
|
|
extern MapObjectValues mapvals;
|
|
|
|
#endif /* __MAPOBJECT_MAIN_H__ */
|