reorganized the source code
[dosdemo] / src / scr / smoketxt.h
1 #ifndef SMOKE_TEXT_H_
2 #define SMOKE_TEXT_H_
3
4 struct smktxt;
5
6 struct smktxt *create_smktxt(const char *imgname, const char *vfieldname);
7 void destroy_smktxt(struct smktxt *stx);
8
9 int gen_smktxt_vfield(struct smktxt *stx, int xres, int yres, float xfreq, float yfreq);
10 int dump_smktxt_vfield(struct smktxt *stx, const char *fname);
11
12 void set_smktxt_wind(struct smktxt *stx, float x, float y, float z);
13 void set_smktxt_plife(struct smktxt *stx, float life);
14 void set_smktxt_pcount(struct smktxt *stx, int count);
15 void set_smktxt_drag(struct smktxt *stx, float drag);
16
17 void update_smktxt(struct smktxt *stx, float dt);
18 void draw_smktxt(struct smktxt *stx);
19
20
21 #endif  /* SMOKE_TEXT_ */