18#ifndef BT_MULTIMATERIAL_TRIANGLE_INDEX_VERTEX_ARRAY_H
19#define BT_MULTIMATERIAL_TRIANGLE_INDEX_VERTEX_ARRAY_H
64 int numVertices,
btScalar* vertexBase,
int vertexStride,
65 int numMaterials,
unsigned char* materialBase,
int materialStride,
66 int* triangleMaterialsBase,
int materialIndexStride);
73 m_materials[m_materials.
size() - 1].m_triangleType = triangleType;
76 virtual void getLockedMaterialBase(
unsigned char** materialBase,
int& numMaterials,
PHY_ScalarType& materialType,
int& materialStride,
77 unsigned char** triangleMaterialBase,
int& numTriangles,
int& triangleMaterialStride,
PHY_ScalarType& triangleType,
int subpart = 0);
79 virtual void getLockedReadOnlyMaterialBase(
const unsigned char** materialBase,
int& numMaterials,
PHY_ScalarType& materialType,
int& materialStride,
80 const unsigned char** triangleMaterialBase,
int& numTriangles,
int& triangleMaterialStride,
PHY_ScalarType& triangleType,
int subpart = 0);
PHY_ScalarType
PHY_ScalarType enumerates possible scalar types.
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
#define ATTRIBUTE_ALIGNED16(a)
btAlignedObjectArray< btMaterialProperties > MaterialArray
int size() const
return the number of elements in the array
void push_back(const T &_Val)
The btTriangleIndexVertexArray allows to access multiple triangle meshes, by indexing into existing t...
Teh btTriangleIndexVertexMaterialArray is built on TriangleIndexVertexArray The addition of a materia...
BT_DECLARE_ALIGNED_ALLOCATOR()
virtual ~btTriangleIndexVertexMaterialArray()
btTriangleIndexVertexMaterialArray()
MaterialArray m_materials
void addMaterialProperties(const btMaterialProperties &mat, PHY_ScalarType triangleType=PHY_INTEGER)
This file was created by Alex Silverman.
int m_numTriangles
m_numTriangles <=========== This exists in the btIndexedMesh object for the same subpart,...
const unsigned char * m_triangleMaterialsBase
PHY_ScalarType m_materialType
const unsigned char * m_materialBase
int m_triangleMaterialStride
PHY_ScalarType m_triangleType
m_triangleType <========== Automatically set in addMaterialProperties
int m_numMaterials
m_materialBase ==========> 2 btScalar values make up one material, friction then restitution