PDA

View Full Version : having trouble with NvTriStrip :(



robert
07-29-2002, 04:07 AM
I have a simple vertex structure of
Vertex {
Vector pos;
Vector tex;
etc...
}

and that is stored in a vector<> array.


Now, i need to pass these into the TriStrip function:



void GenerateStrips(const unsigned short* in_indices, const unsigned int in_numIndices,
PrimitiveGroup** primGroups, unsigned short* numGroups);

I am having trouble with the first parameter, the rest are ok. It needs an unsigned short pointer, is this a pointer to an array of unsigned shorts that point to my individual vertex positions?

It seems so much easier in the directX example http://www.opengl.org/discussion_boards/ubb/frown.gif... http://www.opengl.org/discussion_boards/ubb/smile.gif

hehe sorry if this is confusing..