int AddDynamicVertex(vect3d v,vect3d norm,float tu,float tv,DWORD color)

v: Coordinates in the world space.

norm: Normal of vertex. The normal of face will be the normal of first vertex from its vertices.

tu,tv: U,V texture coordinates. The texture area is [0..1], but you can tile it [-8192..8192].

color: Color of vertex in dxColor format.

 

Result:

If it was not successfull, it is -1.

If it was succesfull, so it is the vertex index in dynamic buffer.