View Full Version : I am trying to compile a cylinder.

John Jenkins
11-06-2002, 07:41 AM
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
...then later I try to draw it

glCallList CylinderList
glFlush <--tried adding this and still doesn't work.

11-06-2002, 03:52 PM
Don't know much VB, but do you have a valid context when you try creating your display list? What does glGetError say?