Teh btTriangleIndexVertexMaterialArray is built on TriangleIndexVertexArray The addition of a material array allows for the utilization of the partID and triangleIndex that are returned in the ContactAddedCallback. More...
#include <btTriangleIndexVertexMaterialArray.h>
Public Member Functions | |
BT_DECLARE_ALIGNED_ALLOCATOR () | |
btTriangleIndexVertexMaterialArray () | |
btTriangleIndexVertexMaterialArray (int numTriangles, int *triangleIndexBase, int triangleIndexStride, int numVertices, btScalar *vertexBase, int vertexStride, int numMaterials, unsigned char *materialBase, int materialStride, int *triangleMaterialsBase, int materialIndexStride) | |
This file was created by Alex Silverman. | |
virtual | ~btTriangleIndexVertexMaterialArray () |
void | addMaterialProperties (const btMaterialProperties &mat, PHY_ScalarType triangleType=PHY_INTEGER) |
virtual void | getLockedMaterialBase (unsigned char **materialBase, int &numMaterials, PHY_ScalarType &materialType, int &materialStride, unsigned char **triangleMaterialBase, int &numTriangles, int &triangleMaterialStride, PHY_ScalarType &triangleType, int subpart=0) |
virtual void | getLockedReadOnlyMaterialBase (const unsigned char **materialBase, int &numMaterials, PHY_ScalarType &materialType, int &materialStride, const unsigned char **triangleMaterialBase, int &numTriangles, int &triangleMaterialStride, PHY_ScalarType &triangleType, int subpart=0) |
Protected Attributes | |
MaterialArray | m_materials |
Teh btTriangleIndexVertexMaterialArray is built on TriangleIndexVertexArray The addition of a material array allows for the utilization of the partID and triangleIndex that are returned in the ContactAddedCallback.
As with TriangleIndexVertexArray, no duplicate is made of the material data, so it is the users responsibility to maintain the array during the lifetime of the TriangleIndexVertexMaterialArray.
Definition at line 50 of file btTriangleIndexVertexMaterialArray.h.
btTriangleIndexVertexMaterialArray::btTriangleIndexVertexMaterialArray | ( | ) | [inline] |
Definition at line 58 of file btTriangleIndexVertexMaterialArray.h.
btTriangleIndexVertexMaterialArray::btTriangleIndexVertexMaterialArray | ( | int | numTriangles, | |
int * | triangleIndexBase, | |||
int | triangleIndexStride, | |||
int | numVertices, | |||
btScalar * | vertexBase, | |||
int | vertexStride, | |||
int | numMaterials, | |||
unsigned char * | materialBase, | |||
int | materialStride, | |||
int * | triangleMaterialsBase, | |||
int | materialIndexStride | |||
) |
This file was created by Alex Silverman.
Definition at line 20 of file btTriangleIndexVertexMaterialArray.cpp.
virtual btTriangleIndexVertexMaterialArray::~btTriangleIndexVertexMaterialArray | ( | ) | [inline, virtual] |
Definition at line 67 of file btTriangleIndexVertexMaterialArray.h.
void btTriangleIndexVertexMaterialArray::addMaterialProperties | ( | const btMaterialProperties & | mat, | |
PHY_ScalarType | triangleType = PHY_INTEGER | |||
) | [inline] |
Definition at line 69 of file btTriangleIndexVertexMaterialArray.h.
btTriangleIndexVertexMaterialArray::BT_DECLARE_ALIGNED_ALLOCATOR | ( | ) |
Reimplemented from btTriangleIndexVertexArray.
void btTriangleIndexVertexMaterialArray::getLockedMaterialBase | ( | unsigned char ** | materialBase, | |
int & | numMaterials, | |||
PHY_ScalarType & | materialType, | |||
int & | materialStride, | |||
unsigned char ** | triangleMaterialBase, | |||
int & | numTriangles, | |||
int & | triangleMaterialStride, | |||
PHY_ScalarType & | triangleType, | |||
int | subpart = 0 | |||
) | [virtual] |
Definition at line 46 of file btTriangleIndexVertexMaterialArray.cpp.
void btTriangleIndexVertexMaterialArray::getLockedReadOnlyMaterialBase | ( | const unsigned char ** | materialBase, | |
int & | numMaterials, | |||
PHY_ScalarType & | materialType, | |||
int & | materialStride, | |||
const unsigned char ** | triangleMaterialBase, | |||
int & | numTriangles, | |||
int & | triangleMaterialStride, | |||
PHY_ScalarType & | triangleType, | |||
int | subpart = 0 | |||
) | [virtual] |
Definition at line 68 of file btTriangleIndexVertexMaterialArray.cpp.
Definition at line 53 of file btTriangleIndexVertexMaterialArray.h.