Start a new object, with separate vertex and triangle lists
Start a new object, with separate vertex and triangle lists. Models are often organized into "objects", where each object consists of vertex and triangle lists. An object's triangles index corners in that object's vertex list, rather than a global vertex list. VDSlib, however, relies on combining object vertices into such a global vertex list. This utility function allows the user to specify triangles without renumbering the corner indices. For example, to load two objects into VDSlib, call vdsAddNode() on the vertices of object 1, vdsAddTri() on the triangles of object 1, then call vdsNewObject(). Finally, add the vertices and triangles of object 2. VDSlib will automatically offset the indices of object 2's triangle corners.
Note: vdsNewObject() must be called between vdsBeginGeometry() and vdsEndGeometry().
alphabetic index hierarchy of classes