MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / VertexArray

Method VertexArray

src/collision/VertexArray.cpp:40–45  ·  view source on GitHub ↗

Constructor Note that your data will not be copied into the PolygonVertexArray * @param start Pointer to the start of the vertices data * @param stride The number of bytes between two consecutive vertices in the array * @param nbVertices Number of vertices in the array * @param dataType Data type of the vertices data */

Source from the content-addressed store, hash-verified

38 * @param dataType Data type of the vertices data
39 */
40VertexArray::VertexArray(const void* start, uint32 stride, uint32 nbVertices, DataType dataType) {
41 mNbVertices = nbVertices;
42 mStart = reinterpret_cast<const unsigned char*>(start);
43 mStride = stride;
44 mDataType = dataType;
45}
46
47// Return the coordinates of a given vertex
48Vector3 VertexArray::getVertex(uint32 vertexIndex) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected