PDA

View Full Version : nvTriStrip



celic
09-03-2002, 07:57 AM
I don't know where is the problem, or it doesn't generate correct, or I display incorrect ?


PrimitiveGroup *pg, *map;
............

GenerateStrips(faceData, numInd, &pg, &numGrp);
RemapIndices(pg, numGrp, pg->numIndices, &map);

glEnableClientState(GL_VERTEX_ARRAY);
glVertexPointer(3, GL_FLOAT, 0, vertData);

............
glDrawElements(GL_TRIANGLE_STRIP, map->numIndices, GL_UNSIGNED_SHORT, map->indices);


maybe I use incorrect the glDrawElements()???

vshader
09-04-2002, 06:23 PM
you did of course re-order your vertex arrays according to the remapping you got back from RemapIndices? (just checking)