PDA

View Full Version : create cylinder



ms
01-16-2005, 06:39 PM
how to create cylinder using opengl??

Only Sophoo...
01-16-2005, 09:36 PM
hi

Have a look at this api - gluCylinder

Some reference at
glucylinder (http://www.opengl.org/documentation/blue_book_1.0/book/ch06.html)

- S

Phiphy
01-16-2005, 11:29 PM
first define a quadric variant
GluQuadricObj *Obj

then create a quadric by
Obj = GluNewQuadric();

Finally you can use the function
GluCylinder( *Obj, BaseRadius, TopRadius, Height,....) to create a cylinder