2
* $Id: MOD_util.h 28406 2010-04-25 01:10:03Z campbellbarton $
4
2
* ***** BEGIN GPL LICENSE BLOCK *****
6
4
* This program is free software; you can redistribute it and/or
7
5
* modify it under the terms of the GNU General Public License
8
6
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version. The Blender
10
* Foundation also sells licenses for use in proprietary software under
11
* the Blender License. See http://www.blender.org/BL/ for information
7
* of the License, or (at your option) any later version.
14
* This program is distributed in the hope that it will be useful;
9
* This program is distributed in the hope that it will be useful,
15
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
12
* GNU General Public License for more details.
19
14
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software Foundation;
21
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
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.
23
18
* Contributor(s): Ben Batt
25
20
* ***** END GPL LICENSE BLOCK *****
23
/** \file blender/modifiers/intern/MOD_util.h
28
#ifndef __MOD_UTIL_H__
29
#define __MOD_UTIL_H__
31
/* so modifier types match their defines */
32
#include "MOD_modifiertypes.h"
34
35
struct DerivedMesh;
43
void modifier_init_texture(struct Scene *scene, struct Tex *texture);
40
44
void get_texture_value(struct Tex *texture, float *tex_co, struct TexResult *texres);
45
void get_texture_coords(struct MappingInfoModifierData *dmd, struct Object *ob, struct DerivedMesh *dm, float (*co)[3], float (*texco)[3], int numVerts);
41
46
void modifier_vgroup_cache(struct ModifierData *md, float (*vertexCos)[3]);
42
void validate_layer_name(const struct CustomData *data, int type, char *name, char *outname);
43
struct DerivedMesh *get_cddm(struct Scene *scene, struct Object *ob, struct EditMesh *em, struct DerivedMesh *dm, float (*vertexCos)[3]);
44
struct DerivedMesh *get_dm(struct Scene *scene, struct Object *ob, struct EditMesh *em, struct DerivedMesh *dm, float (*vertexCos)[3], int orco);
46
void modifier_type_init(struct ModifierTypeInfo *types[], ModifierType type);
48
#endif /* MOD_UTIL_H */
47
struct DerivedMesh *get_cddm(struct Object *ob, struct BMEditMesh *em, struct DerivedMesh *dm, float (*vertexCos)[3]);
48
struct DerivedMesh *get_dm(struct Object *ob, struct BMEditMesh *em, struct DerivedMesh *dm, float (*vertexCos)[3], int orco);
49
void modifier_get_vgroup(struct Object *ob, struct DerivedMesh *dm, const char *name, struct MDeformVert **dvert, int *defgrp_index);
51
#endif /* __MOD_UTIL_H__ */