#include "stdafx.h" #include "IndexGenerator.h" /* * QUAD simulator 0 2 4 6 1 3 5 7 021231 243453 */ void IndexGenerator::Start(unsigned short *startptr) { ptr=startptr; index=0; numPrims=0; } void IndexGenerator::AddList(int numVerts) { int numTris = numVerts/3; if (numTris<=0) return; for (int i=0; i