3 * ***** BEGIN GPL LICENSE BLOCK *****
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 * The Original Code is Copyright (C) 2006 Blender Foundation.
20 * All rights reserved.
22 * The Original Code is: all of this file.
24 * Contributor(s): Campbell Barton <ideasman42@gmail.com>
26 * ***** END GPL LICENSE BLOCK *****
29 #ifndef BKE_POINTCACHE_H
30 #define BKE_POINTCACHE_H
34 /* options for clearing pointcache - used for BKE_ptcache_id_clear
35 Before and after are non inclusive (they wont remove the cfra) */
36 #define PTCACHE_CLEAR_ALL 0
37 #define PTCACHE_CLEAR_FRAME 1
38 #define PTCACHE_CLEAR_BEFORE 2
39 #define PTCACHE_CLEAR_AFTER 3
41 #define PTCACHE_EXT ".bphys"
42 #define PTCACHE_PATH "//pointcache/"
44 int BKE_ptcache_id_filename(struct ID *id, char *filename, int cfra, int stack_index, short do_path, short do_ext);
45 FILE * BKE_ptcache_id_fopen(struct ID *id, char mode, int cfra, int stack_index);
46 void BKE_ptcache_id_clear(struct ID *id, char mode, int cfra, int stack_index);