mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 19:43:01 +00:00
70c1ecfdb6
2001-01-14 Sven Neumann <sven@gimp.org> * libgimp/gimpcolor.[ch]: added GimpHSV type and functions and gimp_rgb_composite functions * libgimp/gimpcolorbutton.c: indentation * libgimp/gimpcolorspace.[ch]: added GimpRGB <-> GimpHSV conversion routines * libgimp/gimpwidgets.[ch]: removed gimp_color_update_uchar function * plug-ins/Lighting/lighting_main.[ch] * plug-ins/Lighting/lighting_preview.c * plug-ins/Lighting/lighting_shade.c * plug-ins/MapObject/mapobject_image.c * plug-ins/MapObject/mapobject_main.[ch] * plug-ins/MapObject/mapobject_shade.c * plug-ins/common/mapcolor.c * plug-ins/common/nova.c * plug-ins/common/papertile.c * plug-ins/common/sinus.c * plug-ins/ifscompose/ifscompose.c * plug-ins/script-fu/script-fu-scripts.c: use GimpRGB and GimpHSV
87 lines
1.4 KiB
C
87 lines
1.4 KiB
C
#ifndef __MAPOBJECT_MAIN_H__
|
|
#define __MAPOBJECT_MAIN_H__
|
|
|
|
/* Defines and stuff */
|
|
/* ================= */
|
|
|
|
#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 tooltips_enabled;
|
|
gint showcaps;
|
|
|
|
glong preview_zoom_factor;
|
|
|
|
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__ */
|