Sphere, cylinder, cone and torus

Hello !

Does anyone have algorithms to convert sphere, cylinder, cone and torus to
triangles for using with OpenGL ?

‘Milkshape’ has some of those objects and an optional plugin generates vertices (in a header file) for OpenGL.
A sample programme to view the generated header-file is also included.