2
Copyright (C) 2003 Fons Adriaensen <fons.adriaensen@skynet.be>
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
41
void setv (int i, float v);
43
float vs (int i) const { return _v [i]; }
44
int st (int i) const { return (_b & (1 << i)) ? 1 : 0; }
45
float vi (int n) const
50
if (k) v += k * (_v [i + 1] - v) / 6;
71
void setv (int i, float v);
73
void setv (int h, int i, float v) { _h [h].setv (i, v); }
74
void clrv (int h, int i) { _h [h].clrv (i); }
75
float vs (int h, int i) const { return _h [h].vs (i); }
76
int st (int h, int i) const { return _h [h].st (i); }
77
float vi (int h, int n) const { return _h [h].vi (n); }
78
void write (FILE *F, int k);
79
void read (FILE *F, int k);
95
int save (const char *sdir);
96
int load (const char *sdir);