dunger now saves player start position and cell size
[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_mbutton(int bn, int press, int x, int y);
15 void lview_mouse(int x, int y);
16
17 void draw_lview(void);
18
19 void cell_to_pos(int cx, int cy, float *px, float *py);
20 struct cell *pos_to_cell(float px, float py, int *cx, int *cy);
21 void cell_coords(struct cell *cell, int *col, int *row);
22
23 #endif  /* LVIEW_H_ */