diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 03:13:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 03:13:10 +0000 |
commit | 3c57dd931145d43f2b0aef96c4d178135956bf91 (patch) | |
tree | 3de698981e9f0cc2c4f9569b19a5f3595e741f6b /plug-ins/map-object/map-object-main.h | |
parent | Initial commit. (diff) | |
download | gimp-3c57dd931145d43f2b0aef96c4d178135956bf91.tar.xz gimp-3c57dd931145d43f2b0aef96c4d178135956bf91.zip |
Adding upstream version 2.10.36.upstream/2.10.36
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'plug-ins/map-object/map-object-main.h')
-rw-r--r-- | plug-ins/map-object/map-object-main.h | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/plug-ins/map-object/map-object-main.h b/plug-ins/map-object/map-object-main.h new file mode 100644 index 0000000..5958c7c --- /dev/null +++ b/plug-ins/map-object/map-object-main.h @@ -0,0 +1,90 @@ +#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 PLUG_IN_ROLE "gimp-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 create_new_layer; + gint transparent_background; + gint tiled; + gint livepreview; + gint showgrid; + gint showcaps; + + gdouble zoom; + gdouble alpha,beta,gamma; + gdouble maxdepth; + gdouble pixelthreshold; + 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__ */ |