4 * ***** BEGIN GPL LICENSE BLOCK *****
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
21 * All rights reserved.
23 * The Original Code is: all of this file.
25 * Contributor(s): none yet.
27 * ***** END GPL LICENSE BLOCK *****
33 #if defined(WIN32) && !defined(FREE_WINDOWS)
34 #pragma warning (disable:4786) // get rid of stupid stl-visual compiler debug warning
40 #ifdef WITH_CXX_GUARDEDALLOC
41 #include "MEM_guardedalloc.h"
50 RAS_Deformer() : m_pMesh(NULL), m_bDynamic(false) {};
51 virtual ~RAS_Deformer(){};
52 virtual void Relink(GEN_Map<class GEN_HashedPtr, void*>*map)=0;
53 virtual bool Apply(class RAS_IPolyMaterial *polymat)=0;
54 virtual bool Update(void)=0;
55 virtual bool UpdateBuckets(void)=0;
56 virtual RAS_Deformer *GetReplica()=0;
57 virtual void ProcessReplica()=0;
58 virtual bool SkipVertexTransform()
62 virtual bool ShareVertexArray()
66 virtual bool UseVertexArray()
70 // true when deformer produces varying vertex (shape or armature)
75 virtual struct DerivedMesh* GetFinalMesh()
79 virtual class RAS_MeshObject* GetRasMesh()
81 /* m_pMesh does not seem to be being used?? */
84 virtual float (* GetTransVerts(int *tot))[3] { *tot= 0; return NULL; }
87 class RAS_MeshObject *m_pMesh;
90 #ifdef WITH_CXX_GUARDEDALLOC
92 void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE:RAS_Deformer"); }
93 void operator delete( void *mem ) { MEM_freeN(mem); }