When porting spheres to OpenGL, keep the following points in mind:
The following table lists the IRIS GL functions for drawing spheres and their equivalent GLU functions where available.
| IRIS GL Function | GLU Function | Meaning |
|---|---|---|
| sphobj | gluNewQuadric | Create a new sphere object. |
| sphfree | gluDeleteQuadric | Delete sphere object and free memory used. |
| sphdraw | gluSphere | Draw a sphere. |
| sphmode | — | Set sphere attributes. |
| sphrotmatrix | — | Control sphere orientation. |
| sphgnpolys | — | Return number of polygons in current sphere. |