~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to source/blender/modifiers/intern/MOD_meshcache_util.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * ***** BEGIN GPL LICENSE BLOCK *****
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU General Public License
 
6
 * as published by the Free Software Foundation; either version 2
 
7
 * of the License, or (at your option) any later version.
 
8
 *
 
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.
 
13
 *
 
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 Foundation,
 
16
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
17
 *
 
18
 * Contributor(s): Campbell Barton
 
19
 *
 
20
 * ***** END GPL LICENSE BLOCK *****
 
21
 */
 
22
 
 
23
/** \file blender/modifiers/intern/MOD_meshcache_util.h
 
24
 *  \ingroup modifiers
 
25
 */
 
26
 
 
27
#ifndef __MOD_MESHCACHE_UTIL_H__
 
28
 
 
29
struct MPoly;
 
30
struct MLoop;
 
31
 
 
32
/* MOD_meshcache_mdd.c */
 
33
bool MOD_meshcache_read_mdd_index(FILE *fp,
 
34
                                  float (*vertexCos)[3], const int vertex_tot,
 
35
                                  const int index, const float factor,
 
36
                                  const char **err_str);
 
37
bool MOD_meshcache_read_mdd_frame(FILE *fp,
 
38
                                  float (*vertexCos)[3], const int verts_tot, const char interp,
 
39
                                  const float frame,
 
40
                                  const char **err_str);
 
41
bool MOD_meshcache_read_mdd_times(const char *filepath,
 
42
                                  float (*vertexCos)[3], const int verts_tot, const char interp,
 
43
                                  const float time, const float fps, const char time_mode,
 
44
                                  const char **err_str);
 
45
 
 
46
/* MOD_meshcache_pc2.c */
 
47
bool MOD_meshcache_read_pc2_index(FILE *fp,
 
48
                                  float (*vertexCos)[3], const int verts_tot,
 
49
                                  const int index, const float factor,
 
50
                                  const char **err_str);
 
51
bool MOD_meshcache_read_pc2_frame(FILE *fp,
 
52
                                  float (*vertexCos)[3], const int verts_tot, const char interp,
 
53
                                  const float frame,
 
54
                                  const char **err_str);
 
55
bool MOD_meshcache_read_pc2_times(const char *filepath,
 
56
                                  float (*vertexCos)[3], const int verts_tot, const char interp,
 
57
                                  const float time, const float fps, const char time_mode,
 
58
                                  const char **err_str);
 
59
 
 
60
/* MOD_meshcache_util.c */
 
61
void MOD_meshcache_calc_range(const float frame, const char interp,
 
62
                              const int frame_tot,
 
63
                              int r_index_range[2], float *r_factor);
 
64
 
 
65
#define FRAME_SNAP_EPS 0.0001f
 
66
 
 
67
#endif /* __MOD_MESHCACHE_UTIL_H__ */