1 /* 2 * Copyright (C) 2002 Jeremie Allard (Hufo / N.A.A.) 3 * 4 * Note: Credits for the 2d warping field fly to 5 * Hugo Elias: http://freespace.virgin.net/hugo.elias 6 * I've transposed to 3d. 7 * 8 * Ported to Linux by Tugrul Galatali <tugrul@galatali.com> 9 * 10 * hufo_smoke is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License version 2 as 12 * published by the Free Software Foundation. 13 * 14 * hufo_smoke is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU General Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 */ 23 24 #ifndef FMOTION_H 25 #define FMOTION_H 26 27 #include <rsMath/rsVec.h> 28 29 struct PARTICLE { 30 rsVec p, v; 31 }; 32 33 bool FMotionInit (); 34 void FMotionQuit (); 35 void FMotionAnimate (const float &dt); 36 void FMotionWarp (rsVec &p, const float &dt); 37 void AffFMotion (); 38 39 #endif 40