Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/gameengine/Rasterizer/RAS_MeshObject.h')
-rw-r--r--source/gameengine/Rasterizer/RAS_MeshObject.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/source/gameengine/Rasterizer/RAS_MeshObject.h b/source/gameengine/Rasterizer/RAS_MeshObject.h
index 3aeed836ba0..e26715ef210 100644
--- a/source/gameengine/Rasterizer/RAS_MeshObject.h
+++ b/source/gameengine/Rasterizer/RAS_MeshObject.h
@@ -66,7 +66,9 @@ public:
struct RAS_TriangleIndex
{
public:
- int m_index[3];
+ int m_index[3];
+ int m_array;
+ RAS_IPolyMaterial* m_matid;
bool m_collider;
};
@@ -131,12 +133,14 @@ public:
vector<RAS_IPolyMaterial*> m_sortedMaterials;
vector<vector<RAS_MatArrayIndex> > m_xyz_index_to_vertex_index_mapping;
vector<RAS_TriangleIndex > m_triangle_indices;
+
+ int m_class;
- int GetLightLayer();
+ unsigned int GetLightLayer();
int NumMaterials();
- const STR_String& GetMaterialName(int matid);
- RAS_MaterialBucket* GetMaterialBucket(int matid);
- const STR_String& GetTextureName(int matid);
+ const STR_String& GetMaterialName(unsigned int matid);
+ RAS_MaterialBucket* GetMaterialBucket(unsigned int matid);
+ const STR_String& GetTextureName(unsigned int matid);
virtual void AddPolygon(RAS_Polygon* poly);
void UpdateMaterialList();
@@ -217,8 +221,8 @@ public:
int GetVertexArrayLength(RAS_IPolyMaterial* mat);
RAS_TexVert* GetVertex(
- int matid,
- int index
+ unsigned int matid,
+ unsigned int index
);
const vecIndexArrays& GetIndexCache (RAS_IPolyMaterial* mat);