vdsNode* vdsAddNode (vdsVec3 coord, vdsVec3 normal, vdsByte3 color)

Add a vertex of the original model as a leaf node of the VDS vertex tree

Documentation

Add a vertex of the original model as a leaf node of the VDS vertex tree. Given a vertex coordinate, creates a vdsNode to represent the vertex as a leaf node in the vertex tree.
Returns:
A pointer to the created node, in case the user wishes to create a vertex->data field. NOTE: This pointer is only guaranteed valid until the next call to vdsAddNode() or vdsEndGeometry(). Note: vdsAddNode() must be called between vdsBeginGeometry() and vdsEndGeometry().
Parameters:
coord - The coordinates of the vertex
normal - The surface normal at the vertex
color - The surface color at the vertex

alphabetic index hierarchy of classes