1 //------------------------------------------------------------------------- 2 /* 3 Copyright (C) 1997, 2005 - 3D Realms Entertainment 4 5 This file is part of Shadow Warrior version 1.2 6 7 Shadow Warrior is free software; you can redistribute it and/or 8 modify it under the terms of the GNU General Public License 9 as published by the Free Software Foundation; either version 2 10 of the License, or (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15 16 See the GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with this program; if not, write to the Free Software 20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 21 22 Original Source: 1997 - Frank Maddin and Jim Norwood 23 Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms 24 */ 25 //------------------------------------------------------------------------- 26 27 #define SHORT_MAXINTERPOLATIONS 256 28 extern short short_numinterpolations, short_startofdynamicinterpolations; 29 extern short short_oldipos[SHORT_MAXINTERPOLATIONS]; 30 extern short short_bakipos[SHORT_MAXINTERPOLATIONS]; 31 extern short *short_curipos[SHORT_MAXINTERPOLATIONS]; 32 33 #define MAXINTERPOLATIONS 1024 34 extern int numinterpolations, startofdynamicinterpolations; 35 extern int oldipos[MAXINTERPOLATIONS]; 36 extern int bakipos[MAXINTERPOLATIONS]; 37 extern int *curipos[MAXINTERPOLATIONS]; 38 39 void setinterpolation(int *posptr); 40 void stopinterpolation(int *posptr); 41 void updateinterpolations(void); 42 void dointerpolations(int smoothratio); 43 void restoreinterpolations(void); 44