[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Uses a left-handed coordinate system to create a mesh that contains a sphere.
Assembly: Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)
'Declaration Public Shared Function Sphere ( _ device As Device, _ radius As Single, _ slices As Integer, _ stacks As Integer _ ) As Mesh 'Usage Dim device As Device Dim radius As Single Dim slices As Integer Dim stacks As Integer Dim returnValue As Mesh returnValue = Mesh.Sphere(device, _ radius, slices, stacks)
public static Mesh Sphere( Device device, float radius, int slices, int stacks )
public: static Mesh^ Sphere( Device^ device, float radius, int slices, int stacks )
static member Sphere : device:Device * radius:float32 * slices:int * stacks:int -> Mesh
A Device object that represents the device associated with the created sphere mesh.
Radius of the sphere. This value should be greater than or equal to 0.0f.
Number of slices around the main axis.
Number of stacks along the main axis.
The method call is invalid. For example, a method's parameter may contain an invalid value.
Direct3D could not allocate sufficient memory to complete the call.
The created sphere is centered at the origin, and its axis is aligned with the z-axis.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.NET Compact Framework
Supported in: 3.5, 2.0