scrythe
01-08-2004, 04:40 PM
Hi,
I have a list of polygons(which vary in there number of vertices) which I grab from a file and was hopeing to use a combination of gl*Pointer and glDrawElements to display these, but from looking at the opengl man pages for glDrawElements (-type= GL_POLYGON because a varying number of vertices) you supply a list of Indices but this will only draw a single polygon, Is there any way to supply seperate faces in the indice pointer say a value of -1 for each new face? so that I can still batch process the Vertices.
I have a list of polygons(which vary in there number of vertices) which I grab from a file and was hopeing to use a combination of gl*Pointer and glDrawElements to display these, but from looking at the opengl man pages for glDrawElements (-type= GL_POLYGON because a varying number of vertices) you supply a list of Indices but this will only draw a single polygon, Is there any way to supply seperate faces in the indice pointer say a value of -1 for each new face? so that I can still batch process the Vertices.