2000-02-18 13:59:18 +00:00
|
|
|
#ifndef __MAPOBJECT_PREVIEW_H__
|
|
|
|
#define __MAPOBJECT_PREVIEW_H__
|
1998-03-20 02:42:24 +00:00
|
|
|
|
|
|
|
#define PREVIEW_WIDTH 200
|
|
|
|
#define PREVIEW_HEIGHT 200
|
|
|
|
|
2011-02-19 19:49:34 +01:00
|
|
|
#define WIRESIZE 16
|
|
|
|
|
1998-03-20 02:42:24 +00:00
|
|
|
/* Externally visible variables */
|
|
|
|
/* ============================ */
|
|
|
|
|
|
|
|
extern gdouble mat[3][4];
|
|
|
|
extern gint lightx,lighty;
|
|
|
|
|
|
|
|
/* Externally visible functions */
|
|
|
|
/* ============================ */
|
|
|
|
|
2011-02-13 14:16:32 +01:00
|
|
|
void compute_preview_image (void);
|
2011-02-16 22:03:09 +01:00
|
|
|
gboolean preview_draw (GtkWidget *widget,
|
|
|
|
cairo_t *cr);
|
2011-02-13 14:16:32 +01:00
|
|
|
gint check_light_hit (gint xpos,
|
|
|
|
gint ypos);
|
|
|
|
void update_light (gint xpos,
|
|
|
|
gint ypos);
|
2000-02-18 13:59:18 +00:00
|
|
|
|
|
|
|
#endif /* __MAPOBJECT_PREVIEW_H__ */
|