C3DMesh::CreateSphere |
Top Previous Next |
Syntax:
CreateSphere(C3DScreen pScreen, int numBands, float rad, int bInside), int
Purpose: Creates a sphere mesh..
Parameters: pScreen - A C3DScreen Object. numBands - Density of vertices around the the sphere. rad - Radius of the sphere. bInside - Culling flag.
Returned value(s): TRUE if the mesh could be created, FALSE otherwise.
Application: Mesh3.CreateSphere(s, 30, 0.5, FALSE)
Class Hierarchy -------C3DMesh
Additional Info: Higher number of bands will produce a better looking sphere at the cost of more memory.
If bInside is TRUE then the sphere will be visible when the camera is inside of it, such as a room. You can make a sphere visible from both inside and out by using the SetCulling command. Note however that light reflection will be determined by the bInside parameter.
See Also:
|