SPHDRAW(3L)SPHDRAW(3L)NAMEsphdraw - 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.
DESCRIPTIONsphdraw 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
Page 1