P.S: I used gluCylinder and gluDisk to create pipes. I think i have to use glTranslate or glRotate but i can’t figure out how to create the curve.
I tried this link http://linas.org/gle/index.html. One of the contributer ‘J P’ suggested me to use stuffs in that that page. But I’m not able to download GLE32 from that page because the it’s a broken link.
Any other ideas other than using GLE32 or specifying vertices?
If you want some ideas on drawing bends, the perfect example that comes to my mind is the OpenGL 3D Pipes screen saver source code.
You can get that code from MSDN I believe, or at least could, I know it is on my MSDN Library CD anyway.
I should also mention that the “GLE Tubing and Extrusion” Lib is distributed with the current version of glut (windows V3.7.6) and this comes with GLE demo apps with VC++ (*.dsw) workspaces.