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