View Full Version : glutSolidCylinder
12-20-2007, 11:48 AM
I try to draw a cylinder under opengl and i get this error
'glutWireCylinder': identifier not found
The thing is that glutSolidSphere is working.
12-20-2007, 12:09 PM
There are no Cylinder functions in glut. Check here (http://www.opengl.org/resources/libraries/glut/glut-3.spec.pdf).
You can use the gluCylinder function from the glu (http://www.opengl.org/documentation/specs/glu/glu1_3.pdf) library or write your own Cylinder code. You can find a tutorial on glu quadrics here (http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=18).
12-20-2007, 12:10 PM
Yes, unfortunately the original GLUT implementation doesn't have cylinder drawing utilities.
I think maybe freeglut does, or try one of the other flavors?
Edit: Nico beat me to it ;)
12-20-2007, 12:28 PM
Thanks both of you..
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.