PDA

View Full Version : glDrawRangeElements



guju
06-12-2002, 12:47 AM
Hi There!
I converted my draw program from:
glDrawRangeElements(GL_QUADS,1,(numQuads)*4,numQua ds*4,GL_UNSIGNED_INT,elements_quad);
to
for(int i=0;i<((numQuads/1024)-1);i++){
glDrawRangeElements(GL_QUADS,(1+i*4096),4096*(i+1) ,4096,GL_UNSIGNED_INT,elements_quad);
}
glDrawRangeElements(GL_QUADS,4096*(i+1)+1,4096*(i+ 1)+1+(numQuads%1024)*4,4096,GL_UNSIGNED_INT,elemen ts_quad);
but i only can see a subset of my elements??
Whats wrong!
Juergen

knackered
06-12-2002, 03:23 AM
That code is rather unattractive.