X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fscr%2Fsmoketxt.h;fp=src%2Fscr%2Fsmoketxt.h;h=42ba49dbae630312b82517c11e595b30ed4dd0b4;hb=ba648ddfc62fc6d3f47294aa8bfc10ea6ca3f479;hp=0000000000000000000000000000000000000000;hpb=3398fc6c4188104048f99b650a6cb90beda9b6ed;p=dosdemo diff --git a/src/scr/smoketxt.h b/src/scr/smoketxt.h new file mode 100644 index 0000000..42ba49d --- /dev/null +++ b/src/scr/smoketxt.h @@ -0,0 +1,21 @@ +#ifndef SMOKE_TEXT_H_ +#define SMOKE_TEXT_H_ + +struct smktxt; + +struct smktxt *create_smktxt(const char *imgname, const char *vfieldname); +void destroy_smktxt(struct smktxt *stx); + +int gen_smktxt_vfield(struct smktxt *stx, int xres, int yres, float xfreq, float yfreq); +int dump_smktxt_vfield(struct smktxt *stx, const char *fname); + +void set_smktxt_wind(struct smktxt *stx, float x, float y, float z); +void set_smktxt_plife(struct smktxt *stx, float life); +void set_smktxt_pcount(struct smktxt *stx, int count); +void set_smktxt_drag(struct smktxt *stx, float drag); + +void update_smktxt(struct smktxt *stx, float dt); +void draw_smktxt(struct smktxt *stx); + + +#endif /* SMOKE_TEXT_ */