Hi, I would like to use display list to draw many triangle, and i have written the following function:
void InitializeList()
{
g_ModelList = glGenLists(1);
if(!glIsList(g_ModelList))
{
MessageBox(NULL, "The display list is not valid", "Error", MB_OK);
return;
}
glNewList(g_ModelList, GL_COMPILE);
glBegin( GL_TRIANGLES );
glVertex3f(1, 1, 0);
glVertex3f(0, 0, 0);
glVertex3f(2, 0, 0);
glEnd();
glEndList();
}
However, I would like to ask if for all the triangle i am going to draw by this function, each triangle vertex are different, will I still be able to use display list? As I don’t nkow whether it is flexiable for me to use gltranslate, etc to make the x, y, z coordinate of all the triange in each triangle different…