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

« back to all changes in this revision

Viewing changes to source/gameengine/Converter/BL_MeshDeformer.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:
38
38
#include "MT_Point3.h"
39
39
#include <stdlib.h>
40
40
 
41
 
#if defined(WIN32) && !defined(FREE_WINDOWS)
42
 
#pragma warning (disable:4786) // get rid of stupid stl-visual compiler debug warning
43
 
#endif //WIN32
 
41
#ifdef _MSC_VER
 
42
#  pragma warning (disable:4786)  /* get rid of stupid stl-visual compiler debug warning */
 
43
#endif
44
44
 
45
45
class BL_DeformableGameObject;
46
46
 
63
63
                m_lastDeformUpdate(-1)
64
64
        {};
65
65
        virtual ~BL_MeshDeformer();
66
 
        virtual void SetSimulatedTime(double time){}
 
66
        virtual void SetSimulatedTime(double time) {}
67
67
        virtual bool Apply(class RAS_IPolyMaterial *mat);
68
 
        virtual bool Update(void){ return false; }
69
 
        virtual bool UpdateBuckets(void){ return false; }
70
 
        virtual RAS_Deformer*   GetReplica(){return NULL;}
 
68
        virtual bool Update(void) { return false; }
 
69
        virtual bool UpdateBuckets(void) { return false; }
 
70
        virtual RAS_Deformer*   GetReplica() {return NULL;}
71
71
        virtual void ProcessReplica();
72
72
        struct Mesh* GetMesh() { return m_bmesh; }
73
 
        virtual class RAS_MeshObject* GetRasMesh() { return (RAS_MeshObject*)m_pMeshObject; }
 
73
        virtual class RAS_MeshObject* GetRasMesh() { return m_pMeshObject; }
74
74
        virtual float (* GetTransVerts(int *tot))[3]    {       *tot= m_tvtot; return m_transverts; }
75
 
        //      virtual void InitDeform(double time){}
 
75
        //      virtual void InitDeform(double time) {}
76
76
 
77
77
protected:
78
78
        class RAS_MeshObject*           m_pMeshObject;
90
90
 
91
91
 
92
92
#ifdef WITH_CXX_GUARDEDALLOC
93
 
public:
94
 
        void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE:BL_MeshDeformer"); }
95
 
        void operator delete( void *mem ) { MEM_freeN(mem); }
 
93
        MEM_CXX_CLASS_ALLOC_FUNCS("GE:BL_MeshDeformer")
96
94
#endif
97
95
};
98
96