DGLUT.PAS
I have mailed it to you.
Good luck.
{ DGLUT is an Object Pascal translation of a small part of Mark Kilgard's
GLUT library for OpenGL. Included here are just the shape-drawing routines
from glut_shapes.c and the teapot routines from glut_teapot.c. Following
is the original copyright notices from those files. }
procedure DrawBox(Size : GLfloat; DrawType : GLenum);
procedure glutWireCube(Size : GLDouble);
procedure glutSolidCube(Size : GLDouble);
procedure glutWireSphere(
Radius : GLdouble;
Slices : GLint;
Stacks : GLint);
procedure glutSolidSphere(
Radius : GLdouble;
Slices : GLint;
Stacks : GLint);
procedure glutWireCone(
Base : GLdouble;
Height : GLdouble;
Slices : GLint;
Stacks : GLint);
procedure glutSolidCone(
Base : GLdouble;
Height : GLdouble;
Slices : GLint;
Stacks : GLint);
procedure glutWireTorus(
innerRadius : GLdouble;
outerRadius :GLdouble;
nsides : GLint;
rings : GLint);
procedure glutSolidTorus(
innerRadius : GLdouble;
outerRadius :GLdouble;
nsides : GLint;
rings : GLint);
procedure glutWireDodecahedron;
procedure glutSolidDodecahedron;
procedure Octaheadron(ShadeType : GLenum);
procedure glutWireOctaheadron;
procedure glutSolidOctaheadron;
procedure Icosahedron(ShadeType : GLenum);
procedure glutWireIcosahedron;
procedure glutSolidIcosahedron;
procedure Tetrahedron(ShadeType : GLenum);
procedure glutWireTetrahedron;
procedure glutSolidTetrahedron;
{ Teapot stuff }
procedure Teapot(Grid : GLint; Scale : GLdouble; ShadeType : GLenum);
procedure glutWireTeapot(Scale : GLdouble);
procedure glutSolidTeapot(Scale : GLdouble);
{ Generally useful stuff }
procedure Diff3(a0, a1, a2, b0, b1, b2 : GLfloat; var c : array of GLfloat);
procedure CrossProd(v1, v2 : array of GLfloat; var prod : array of GLfloat);
procedure Normalize(var v : array of GLfloat);
var
quadObj : GLUquadricObj;
dodec : array[0..19, 0..2] of GLfloat;