texturing a md2 model
I have an md2 rendered correctly in wireframes. But now i need to texture it. Here's what i got:
verts and st are valid pointers and contain correct data. Also you should know that this code gets called in a loop once for each primitive in the model. Me thinks the problem is my st array is twice as big as the indice array. This should be hopefully just opengl syntax that i'm doing wrong. Or need to do.
glVertexPointer(3, GL_FLOAT, 0, verts);
glTexCoordPointer(2, GL_FLOAT, 0, st);
if(model->Primitives[i].PrimitiveType == MD2_TRIANGLESTRIP)
if(model->Primitives[i].PrimitiveType == MD2_TRIANGLEFAN)
Re: texturing a md2 model