home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / plug-ins / Lighting / lighting_preview.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-31  |  1.3 KB  |  45 lines

  1. /* Lighting Effects - A plug-in for GIMP
  2.  *
  3.  * This program is free software; you can redistribute it and/or modify
  4.  * it under the terms of the GNU General Public License as published by
  5.  * the Free Software Foundation; either version 2 of the License, or
  6.  * (at your option) any later version.
  7.  *
  8.  * This program is distributed in the hope that it will be useful,
  9.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.  * GNU General Public License for more details.
  12.  *
  13.  * You should have received a copy of the GNU General Public License
  14.  * along with this program; if not, write to the Free Software
  15.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  16.  */
  17.  
  18. #ifndef __LIGHTING_PREVIEW_H__
  19. #define __LIGHTING_PREVIEW_H__
  20.  
  21. #define PREVIEW_WIDTH 200
  22. #define PREVIEW_HEIGHT 200
  23.  
  24. typedef struct
  25. {
  26.   gint x,y,w,h;
  27.   GdkImage *image;
  28. } BackBuffer;
  29.  
  30. /* Externally visible variables */
  31.  
  32. extern gint       lightx,lighty;
  33. extern BackBuffer backbuf;
  34. extern gdouble    *xpostab,*ypostab;
  35.  
  36. /* Externally visible functions */
  37.  
  38. void draw_preview_image (gint recompute);
  39. gint check_light_hit    (gint xpos,
  40.              gint ypos);
  41. void update_light       (gint xpos,
  42.              gint ypos);
  43.  
  44. #endif  /* __LIGHTING_PREVIEW_H__ */
  45.