|  | ReactPhysics3D
    v0.10.2
    C++ Physics engine library | 
This class is used to describe an array of vertices. More...
#include <include/reactphysics3d/collision/VertexArray.h>
| Public Types | |
| enum class | DataType { VERTEX_FLOAT_TYPE , VERTEX_DOUBLE_TYPE } | 
| Data type for the vertices in the array. | |
| Public Member Functions | |
| VertexArray (const void *start, uint32 stride, uint32 nbVertices, DataType dataType) | |
| Constructor. | |
| DataType | getDataType () const | 
| Return the vertex data type. | |
| uint32 | getNbVertices () const | 
| Return the number of vertices. | |
| uint32 | getStride () const | 
| Return the vertices stride (number of bytes) | |
| Vector3 | getVertex (uint32 index) const | 
| Return the coordinates of a given vertex. | |
| const unsigned char * | getStart () const | 
| Return the pointer to the start of the vertices array. | |
This class is used to describe an array of vertices.
| VertexArray::VertexArray | ( | const void * | start, | 
| uint32 | stride, | ||
| uint32 | nbVertices, | ||
| DataType | dataType ) | 
Constructor.
Note that your data will not be copied into the PolygonVertexArray.
| start | Pointer to the start of the vertices data | 
| stride | The number of bytes between two consecutive vertices in the array | 
| nbVertices | Number of vertices in the array | 
| dataType | Data type of the vertices data | 
| RP3D_FORCE_INLINE VertexArray::DataType reactphysics3d::VertexArray::getDataType | ( | ) | const | 
Return the vertex data type.
| RP3D_FORCE_INLINE uint32 reactphysics3d::VertexArray::getNbVertices | ( | ) | const | 
Return the number of vertices.
| RP3D_FORCE_INLINE const unsigned char * reactphysics3d::VertexArray::getStart | ( | ) | const | 
Return the pointer to the start of the vertices array.
| RP3D_FORCE_INLINE uint32 reactphysics3d::VertexArray::getStride | ( | ) | const | 
Return the vertices stride (number of bytes)