2000-02-18 13:59:18 +00:00
|
|
|
#ifndef __LIGHTING_PREVIEW_H__
|
|
|
|
#define __LIGHTING_PREVIEW_H__
|
1998-06-11 06:04:59 +00:00
|
|
|
|
|
|
|
#define PREVIEW_WIDTH 300
|
|
|
|
#define PREVIEW_HEIGHT 300
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
gint x,y,w,h;
|
|
|
|
GdkImage *image;
|
|
|
|
} BackBuffer;
|
|
|
|
|
|
|
|
/* Externally visible variables */
|
|
|
|
/* ============================ */
|
|
|
|
|
|
|
|
extern gint lightx,lighty;
|
|
|
|
extern BackBuffer backbuf;
|
|
|
|
extern gdouble *xpostab,*ypostab;
|
|
|
|
|
|
|
|
/* Externally visible functions */
|
|
|
|
/* ============================ */
|
|
|
|
|
2000-02-18 13:59:18 +00:00
|
|
|
void draw_preview_image (gint recompute);
|
|
|
|
gint check_light_hit (gint xpos,
|
|
|
|
gint ypos);
|
|
|
|
void update_light (gint xpos,
|
|
|
|
gint ypos);
|
1998-06-11 06:04:59 +00:00
|
|
|
|
2000-02-18 13:59:18 +00:00
|
|
|
#endif /* __LIGHTING_PREVIEW_H__ */
|