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

Method init

src/collision/PolygonVertexArray.cpp:63–77  ·  view source on GitHub ↗

Initialize the PolygonVertexArray

Source from the content-addressed store, hash-verified

61
62// Initialize the PolygonVertexArray
63void PolygonVertexArray::init(uint32 nbVertices, const void* verticesStart, uint32 verticesStride,
64 const void* indexesStart, uint32 indexesStride,
65 uint32 nbFaces, PolygonFace* facesStart,
66 VertexDataType vertexDataType, IndexDataType indexDataType) {
67
68 mNbVertices = nbVertices;
69 mVerticesStart = reinterpret_cast<const unsigned char*>(verticesStart);
70 mVerticesStride = verticesStride;
71 mIndicesStart = reinterpret_cast<const unsigned char*>(indexesStart);
72 mIndicesStride = indexesStride;
73 mNbFaces = nbFaces;
74 mPolygonFacesStart = facesStart;
75 mVertexDataType = vertexDataType;
76 mIndexDataType = indexDataType;
77}
78
79// Return the vertex index of a given vertex in a face
80/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected