home *** CD-ROM | disk | FTP | other *** search
/ ftp.sunet.sepub/pictures / 2014.11.ftp.sunet.se-pictures.tar / ftp.sunet.se / pub / pictures / ACiD-artpacks / programs / unix / editors / gimp-plugins-unstable-0_99_23_tar.gz / gimp-plugins-unstable-0_99_23_tar / gimp-plugins-unstable-0.99.23 / Lighting / lighting_preview.h < prev    next >
C/C++ Source or Header  |  1998-02-20  |  861b  |  42 lines

  1. #ifndef LIGHTINGPREVIEWH
  2. #define LIGHTINGPREVIEWH
  3.  
  4. #include <stdlib.h>
  5. #include <stdio.h>
  6. #include <math.h>
  7. #include <gdk/gdk.h>
  8. #include <gtk/gtk.h>
  9. #include <gck/gck.h>
  10. #include <libgimp/gimp.h>
  11.  
  12. #include "lighting_main.h"
  13. #include "lighting_ui.h"
  14. #include "lighting_image.h"
  15. #include "lighting_apply.h"
  16. #include "lighting_shade.h"
  17.  
  18. #define PREVIEW_WIDTH 300
  19. #define PREVIEW_HEIGHT 300
  20.  
  21. typedef struct
  22. {
  23.   gint x,y,w,h;
  24.   GdkImage *image;
  25. } BackBuffer;
  26.  
  27. /* Externally visible variables */
  28. /* ============================ */
  29.  
  30. extern gint       lightx,lighty;
  31. extern BackBuffer backbuf;
  32. extern gdouble    *xpostab,*ypostab;
  33.  
  34. /* Externally visible functions */
  35. /* ============================ */
  36.  
  37. extern void draw_preview_image (gint recompute);
  38. extern gint check_light_hit    (gint xpos,gint ypos);
  39. extern void update_light       (gint xpos,gint ypos);
  40.  
  41. #endif
  42.