Gimp/plug-ins/MapObject/mapobject_main.h
Michael Natterer 52b8b75b6b new function gimp_color_button_double_new() which uses an array of gdouble
2000-02-18  Michael Natterer  <misch@gimp.org>

	* libgimp/gimpcolorbutton.[ch]: new function
	gimp_color_button_double_new() which uses an array of gdouble
	instead uf guchar to store the color.

	* libgimp/gimpwidgets.h: added macros for easier access of the
	scale_entries widgets.

	* plug-ins/common/film.c: use the scale_entry widget accessors.

	* plug-ins/libgck/gck/Makefile.am
	* plug-ins/libgck/gck/gckcolor.h
	* plug-ins/libgck/gck/gcktypes.h
	* plug-ins/libgck/gck/gckui.[ch]: removed.

	* plug-ins/libgck/gck/gck.h
	* plug-ins/libgck/gck/gckcolor.c: left only the color functions in
	libgck.

	* plug-ins/Lighting/lighting_pixmaps.h
	* plug-ins/MapObject/mapobject_pixmaps.h: removed (include the
	pixmaps directly).

	* po-plug-ins/POTFILES.in: added mapobject_ui.c.

	* plug-ins/Lighting/lighting_image.c
	* plug-ins/Lighting/lighting_main.[ch]
	* plug-ins/Lighting/lighting_preview.c
	* plug-ins/Lighting/lighting_ui.[ch]
	* plug-ins/MapObject/mapobject_image.[ch]
	* plug-ins/MapObject/mapobject_main.[ch]
	* plug-ins/MapObject/mapobject_preview.c
	* plug-ins/MapObject/mapobject_ui.[ch]: use gtk+ and libgimp
	functions instead of gck ones, cleanups, I18N. More stuff to
	come...
2000-02-17 23:48:13 +00:00

106 lines
1.7 KiB
C

#ifndef __MAPOBJECT_MAIN_H__
#define __MAPOBJECT_MAIN_H__
#include <stdio.h>
#include <stdlib.h>
#include <gtk/gtk.h>
#include <gck/gck.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include "arcball.h"
#include "mapobject_ui.h"
#include "mapobject_image.h"
#include "mapobject_apply.h"
#include "mapobject_preview.h"
#include "config.h"
#include "libgimp/stdplugins-intl.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;
GckRGB color;
} MaterialSettings;
typedef struct
{
LightType type;
GimpVector3 position;
GimpVector3 direction;
GckRGB 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;
extern GckRGB background;
#endif /* __MAPOBJECT_MAIN_H__ */