Original Post
lets say i am importing my 3d data from .3ds model and then i draw it like this:
My question is, what is the best way to optimize this. A display list, using vertex arrays, triangle strips. I guess I do not understand how when parsing the data from the model file you could create a triangle strip. The only way i see to optimize this is by using a display list . . . any help.
glPushMatrix();
glColor3f(1.0,0.0,0.0);
glBegin(GL_TRIANGLES);
for(int i=0; i<numFaces; i++){
for(int j=0; j<3; j++){
glVertex3f(vertices[tris[i].data[j]].x,vertices[tris[i].data[j]].y,vertices[tris[i].data[j]].z);
}
}
glEnd();
glPopMatrix();