diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2007-12-27 01:40:56 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2007-12-27 01:40:56 +0300 |
commit | 015007beafeaeec09ba8a7fc859acc40ba6b8b16 (patch) | |
tree | 2922fc9d7e4d2a4ab9e63da1d6421cdd7cafb3ce /source/blender/blenkernel/BKE_sculpt.h | |
parent | ae976e087a7110c6b25a0fee4f663185b5e4319d (diff) |
== Sculpt ==
Fixed bad level calls in sculptmode.
Diffstat (limited to 'source/blender/blenkernel/BKE_sculpt.h')
-rw-r--r-- | source/blender/blenkernel/BKE_sculpt.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_sculpt.h b/source/blender/blenkernel/BKE_sculpt.h new file mode 100644 index 00000000000..61b8dc071aa --- /dev/null +++ b/source/blender/blenkernel/BKE_sculpt.h @@ -0,0 +1,64 @@ +/* + * $Id$ + * + * ***** BEGIN GPL LICENSE BLOCK ***** + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * The Original Code is Copyright (C) 2007 by Nicholas Bishop + * All rights reserved. + * + * The Original Code is: all of this file. + * + * Contributor(s): none yet. + * + * ***** END GPL LICENSE BLOCK ***** + */ + +typedef struct SculptSession { + struct ProjVert *projverts; + + struct bglMats *mats; + + /* An array of lists; array is sized as + large as the number of verts in the mesh, + the list for each vert contains the index + for all the faces that use that vertex */ + struct ListBase *vertex_users; + struct IndexNode *vertex_users_mem; + int vertex_users_size; + + /* Used temporarily per-stroke */ + float *vertexcosnos; + ListBase damaged_rects; + ListBase damaged_verts; + + /* Used to cache the render of the active texture */ + unsigned int texcache_w, texcache_h, *texcache; + + struct PropsetData *propset; + + /* For rotating around a pivot point */ + vec3f pivot; + + struct SculptStroke *stroke; +} SculptSession; + +void sculptdata_init(struct Scene *sce); +void sculptdata_free(struct Scene *sce); +void sculptsession_free(struct Scene *sce); +void sculpt_vertexusers_free(struct SculptSession *ss); +void sculpt_reset_curve(struct SculptData *sd); + |