summaryrefslogtreecommitdiffstats
path: root/plug-ins/map-object/map-object-preview.h
blob: 400b767ed2e70019d90eacc42f901ac88a75d259 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef __MAPOBJECT_PREVIEW_H__
#define __MAPOBJECT_PREVIEW_H__

#define PREVIEW_WIDTH 200
#define PREVIEW_HEIGHT 200

#define WIRESIZE 16

/* Externally visible variables */
/* ============================ */

extern gdouble    mat[3][4];
extern gint       lightx,lighty;

/* Externally visible functions */
/* ============================ */

void     compute_preview_image  (void);
gboolean preview_expose         (GtkWidget      *widget,
                                 GdkEventExpose *eevent);
gint     check_light_hit        (gint            xpos,
                                 gint            ypos);
void     update_light           (gint            xpos,
                                 gint            ypos);

#endif  /* __MAPOBJECT_PREVIEW_H__ */