BGE Patch: Add Shape Action support and update MSCV_7 project file for glew.
[blender.git] / source / gameengine / Rasterizer / RAS_MeshObject.h
index d8e7a3391aa6061a148e5a0a82062033e771b2cd..d9aa133efb28b266a2460bad7dd422da201358aa 100644 (file)
@@ -43,6 +43,7 @@
 
 #include "GEN_HashedPtr.h"
 
+struct Mesh;
 /**
  * This class holds an array of vertices and indicies.
  */
@@ -144,9 +145,10 @@ protected:
        GEN_Map<class RAS_IPolyMaterial,KX_ArrayOptimizer*> m_matVertexArrayS;
        
        RAS_MaterialBucket::Set                 m_materials;
+       Mesh*                                                   m_mesh;
 public:
        // for now, meshes need to be in a certain layer (to avoid sorting on lights in realtime)
-       RAS_MeshObject(int lightlayer);
+       RAS_MeshObject(Mesh* mesh, int lightlayer);
        virtual ~RAS_MeshObject();
 
        vector<RAS_IPolyMaterial*>                              m_sortedMaterials;
@@ -258,6 +260,7 @@ public:
 
        bool                            MeshModified();
        void                            SetMeshModified(bool v){m_MeshMod = v;}
+       Mesh*                           GetMesh() { return m_mesh; }
 
 };