I am using VB. My program draws alot of cylinders and links them together to form a pipe. I am trying to see if I can speed it up by pre-compiling the cylinders. When I run the program nothing is displayed.
dim qobj as long
dim CylinderList as long
qobj = gluNewQuadric
CylinderList = glGenLists(1)
glNewList CylinderList, lstCompile
gluCylinder qobj, 5, 5, 0.5, 24, 24
glEndList
…then later I try to draw it
glCallList CylinderList
glFlush <--tried adding this and still doesn't work.