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_preview.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-02-23  |  1.1 KB  |  52 lines

  1. #ifndef __MAPOBJECT_PREVIEW_H__
  2. #define __MAPOBJECT_PREVIEW_H__
  3.  
  4. #define PREVIEW_WIDTH 200
  5. #define PREVIEW_HEIGHT 200
  6.  
  7. #define WIRESIZE 16
  8.  
  9. typedef struct
  10. {
  11.   gint         x1, y1, x2, y2;
  12.   gint         linewidth;
  13.   GdkLineStyle linestyle;
  14. } line;
  15.  
  16. typedef struct
  17. {
  18.   gint      x, y, w, h;
  19.   GdkImage *image;
  20. } BackBuffer;
  21.  
  22. /* Externally visible variables */
  23. /* ============================ */
  24.  
  25. extern line       linetab[];
  26. extern gdouble    mat[3][4];
  27. extern gint       lightx,lighty;
  28. extern BackBuffer backbuf;
  29.  
  30. /* Externally visible functions */
  31. /* ============================ */
  32.  
  33. void compute_preview        (gint x,
  34.                  gint y,
  35.                  gint w,
  36.                  gint h,
  37.                  gint pw,
  38.                  gint ph);
  39. void draw_wireframe         (gint startx,
  40.                  gint starty,
  41.                  gint pw,
  42.                  gint ph);
  43. void clear_wireframe        (void);
  44. void draw_preview_image     (gint docompute);
  45. void draw_preview_wireframe (void);
  46. gint check_light_hit        (gint xpos,
  47.                  gint ypos);
  48. void update_light           (gint xpos,
  49.                  gint ypos);
  50.  
  51. #endif  /* __MAPOBJECT_PREVIEW_H__ */
  52.