Creates a Sphere node with the center at the origin of the coordinate system and a radius r. The sphere is divided into slices and stacks, from which a specified number of slices and stacks are visible. The face orientation can be to the outside or inside and a texture can be mapped to the surface of the sphere.
cNode* snSphere ( cNode* node, // pointer to modify node (NULL if new) tFLOAT radius, // radius of the sphere tINT slices, // number of vertical slices (16) tINT stacks, // number of horizontal stacks (16) tINT visible_slices, // number of visible slices (16) tINT visible_stacks, // number of visible stacks (16) tINT orient, // orientation (SL_OUTSIDE, SL_INSIDE) cTexture* texture); // texture to map (NULL)
Return value: Pointer to an instance of class cNode.
Example: See also Quadric example.
