PDA

View Full Version : glGenList quick question



RobertEd
02-05-2010, 06:39 PM
Hi, Does it make sense performance wise to put a for loop in a glNewList call or will this defeate the pourpose?

marshats
02-06-2010, 08:19 PM
Yes it is fine to put a loop in the glNewList since you only do that once and the GL commands are "compiled" and stored. Then when you start to use the glCallList repeatedly to draw to the screen the for loop itself is not used.