home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / plug-ins / MapObject / mapobject_main.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-02-23  |  1.5 KB  |  88 lines

  1. #ifndef __MAPOBJECT_MAIN_H__
  2. #define __MAPOBJECT_MAIN_H__
  3.  
  4. /* Defines and stuff */
  5. /* ================= */
  6.  
  7. #define TILE_CACHE_SIZE 16
  8.  
  9. /* Typedefs */
  10. /* ======== */
  11.  
  12. typedef enum
  13. {
  14.   POINT_LIGHT,
  15.   DIRECTIONAL_LIGHT,
  16.   NO_LIGHT
  17. } LightType;
  18.  
  19. typedef enum
  20. {
  21.   MAP_PLANE,
  22.   MAP_SPHERE,
  23.   MAP_BOX,
  24.   MAP_CYLINDER
  25. } MapType;
  26.  
  27. /* Typedefs */
  28. /* ======== */
  29.  
  30. typedef struct
  31. {
  32.   gdouble ambient_int;
  33.   gdouble diffuse_int;
  34.   gdouble diffuse_ref;
  35.   gdouble specular_ref;
  36.   gdouble highlight;
  37.   GckRGB  color;
  38. } MaterialSettings;
  39.  
  40. typedef struct
  41. {
  42.   LightType   type;
  43.   GimpVector3 position;
  44.   GimpVector3 direction;
  45.   GckRGB      color;
  46.   gdouble     intensity;
  47. } LightSettings;
  48.  
  49. typedef struct
  50. {
  51.   GimpVector3   viewpoint,firstaxis,secondaxis,normal,position,scale;
  52.   LightSettings lightsource;
  53.  
  54.   MaterialSettings material;
  55.   MaterialSettings refmaterial;
  56.  
  57.   MapType maptype;
  58.  
  59.   gint antialiasing;
  60.   gint create_new_image;
  61.   gint transparent_background;
  62.   gint tiled;
  63.   gint showgrid;
  64.   gint tooltips_enabled;
  65.   gint showcaps;
  66.  
  67.   glong preview_zoom_factor;
  68.  
  69.   gdouble alpha,beta,gamma;
  70.   gdouble maxdepth;
  71.   gdouble pixeltreshold;
  72.   gdouble radius;
  73.   gdouble cylinder_radius;
  74.   gdouble cylinder_length;
  75.  
  76.   gint32 boxmap_id[6];
  77.   gint32 cylindermap_id[2];
  78.   
  79. } MapObjectValues;
  80.  
  81. /* Externally visible variables */
  82. /* ============================ */
  83.  
  84. extern MapObjectValues mapvals;
  85. extern GckRGB background;
  86.  
  87. #endif  /* __MAPOBJECT_MAIN_H__ */
  88.