Initialize the PolygonVertexArray
| 61 | |
| 62 | // Initialize the PolygonVertexArray |
| 63 | void 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 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected