cleaned up the level view code
[vrlugburz] / tools / dunger / src / lview.h
1 #ifndef LVIEW_H_
2 #define LVIEW_H_
3
4 #include "level.h"
5
6 int init_lview(struct level *lvl);
7 void destroy_lview(void);
8
9 void lview_viewport(int x, int y, int xsz, int ysz);
10
11 void pan_lview(float dx, float dy);
12 void zoom_lview(float dz);
13
14 void lview_mouse(int x, int y);
15
16 void draw_lview(void);
17
18 void cell_to_pos(int cx, int cy, float *px, float *py);
19 struct cell *pos_to_cell(float px, float py, int *cx, int *cy);
20
21 #endif  /* LVIEW_H_ */