*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> standard/sphdraw (3)              
Title
Content
Arch
Section
 

Contents


SPHDRAW(3L)							   SPHDRAW(3L)


NAME    [Toc]    [Back]

     sphdraw - draw a sphere

C SPECIFICATION    [Toc]    [Back]

     #include <gl/sphere.h>

     int sphdraw(params)
     float params[4];

PARAMETERS    [Toc]    [Back]

     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    [Toc]    [Back]

     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    [Toc]    [Back]

      
      
     libsphere,	sphfree, sphgnpolys, sphmode, sphobj, sphrotmatrix


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
sphfree IRIX free all internal sphere objects in the Sphere Library's internal cache
libsphere IRIX the Sphere Library
sphmode IRIX set sphere attributes
sphobj IRIX create a GL object containing a sphere
mview IRIX Molecule Sphere Demo
sphgnpolys IRIX return the number of polygons for the current set of sphere attributes.
glRectfv Tru64 draw a rectangle
glBitmap Tru64 draw a bitmap
glRectf Tru64 draw a rectangle
glRect Tru64 draw a rectangle
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service