skeleton

03-25-2003, 12:47 PM

when use quads and quad strip and triangle and triangle strip to draw window,the program is as following.I expect the triangle strip should be the fastest one,

quad strip is the second fastest and triangle

is the slowest,however i get the similar result,could you please tell me if i need

change the configuration of the hardware or

the openGL.

glBegin(GL_QUADS);

for(int k=0;k<=n/2-2;k++){

glVertex2fv(vertices[2*k]);

glVertex2fv(vertices[2*k+1]);

glVertex2fv(vertices[2*k+3]);

glVertex2fv(vertices[2*k+2]);

}

glEnd();

glFlush();

glBegin(GL_QUAD_STRIP);

for(k=0;k<n;k++){

glVertex2fv(vertices[k]);

}

glEnd();

glFlush();

quad strip is the second fastest and triangle

is the slowest,however i get the similar result,could you please tell me if i need

change the configuration of the hardware or

the openGL.

glBegin(GL_QUADS);

for(int k=0;k<=n/2-2;k++){

glVertex2fv(vertices[2*k]);

glVertex2fv(vertices[2*k+1]);

glVertex2fv(vertices[2*k+3]);

glVertex2fv(vertices[2*k+2]);

}

glEnd();

glFlush();

glBegin(GL_QUAD_STRIP);

for(k=0;k<n;k++){

glVertex2fv(vertices[k]);

}

glEnd();

glFlush();