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 */
| 38 | * @param dataType Data type of the vertices data |
| 39 | */ |
| 40 | VertexArray::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 |
| 48 | Vector3 VertexArray::getVertex(uint32 vertexIndex) const { |
nothing calls this directly
no outgoing calls
no test coverage detected