sphdraw(3L)

sphdraw - draw a sphere

As shipped in IRIX 6.5.5. Unchanged since IRIX 6.5.

NAME
     sphdraw - draw a sphere

C SPECIFICATION
     #include <gl/sphere.h>

     int sphdraw(params)
     float params[4];

PARAMETERS
     params a 4-element array of floats containing the size and location of a
            sphere. The first 3 elements are the x, y and z coordinates of the
            sphere center, followed by the sphere radius.

FUNCTION RETURN VALUE
     This function returns -1 if an error occurs, otherwise 0.

DESCRIPTION
     sphdraw draws a single sphere of specified radius with center at the
     specified location according to the sphere attributes set by sphmode. The
     sphere is rendered as polygons with a normal at each vertex, and thus
     will be lighted if lighting is enabled.

SEE ALSO
     libsphere, sphfree, sphgnpolys, sphmode, sphobj, sphrotmatrix