diff --git a/src/collision/TriangleVertexArray.cpp b/src/collision/TriangleVertexArray.cpp index 3c6f0905..a37e99b0 100644 --- a/src/collision/TriangleVertexArray.cpp +++ b/src/collision/TriangleVertexArray.cpp @@ -29,6 +29,19 @@ using namespace reactphysics3d; // Constructor +/// Note that your data will not be copied into the TriangleVertexArray and +/// therefore, you need to make sure that those data are always valid during +/// the lifetime of the TriangleVertexArray. +/** + * @param nbVertices Number of vertices in the array + * @param verticesStart Pointer to the first vertices of the array + * @param verticesStride Number of bytes between the beginning of two consecutive vertices + * @param nbTriangles Number of triangles in the array + * @param indexesStart Pointer to the first triangle index + * @param indexesStride Number of bytes between the beginning of two consecutive triangle indices + * @param vertexDataType Type of data for the vertices (float, double) + * @param indexDataType Type of data for the indices (short, int) + */ TriangleVertexArray::TriangleVertexArray(uint nbVertices, void* verticesStart, int verticesStride, uint nbTriangles, void* indexesStart, int indexesStride, VertexDataType vertexDataType, IndexDataType indexDataType) { diff --git a/src/collision/TriangleVertexArray.h b/src/collision/TriangleVertexArray.h index 77d03dc3..ac4ce91b 100644 --- a/src/collision/TriangleVertexArray.h +++ b/src/collision/TriangleVertexArray.h @@ -39,7 +39,7 @@ namespace reactphysics3d { * into the array. It only stores pointer to the data. The purpose is to allow * the user to share vertices data between the physics engine and the rendering * part. Therefore, make sure that the data pointed by a TriangleVertexArray - * remain valid during the TriangleVertexArray life. + * remains valid during the TriangleVertexArray life. */ class TriangleVertexArray { diff --git a/testbed/meshes/city.mtl b/testbed/meshes/city.mtl deleted file mode 100644 index 70d3ba1d..00000000 --- a/testbed/meshes/city.mtl +++ /dev/null @@ -1,10 +0,0 @@ -# Blender MTL File: 'None' -# Material Count: 1 - -newmtl None -Ns 0 -Ka 0.000000 0.000000 0.000000 -Kd 0.8 0.8 0.8 -Ks 0.8 0.8 0.8 -d 1 -illum 2