Mesh.Box Method
Uses a left-handed coordinate system to create a mesh that contains an axis-aligned box.
Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)
Syntax
'Declaration
Public Shared Function Box ( _
device As Device, _
width As Single, _
height As Single, _
depth As Single _
) As Mesh
'Usage
Dim device As Device
Dim width As Single
Dim height As Single
Dim depth As Single
Dim returnValue As Mesh
returnValue = Mesh.Box(device, width, _
height, depth)
public static Mesh Box(
Device device,
float width,
float height,
float depth
)
public:
static Mesh^ Box(
Device^ device,
float width,
float height,
float depth
)
public static function Box(
device : Device,
width : float,
height : float,
depth : float
) : Mesh
Parameters
device
Type: Microsoft.WindowsMobile.DirectX.Direct3D.DeviceA Device object.
width
Type: System.SingleWidth of the box along the x-axis.
height
Type: System.SingleHeight of the box along the y-axis.
depth
Type: System.SingleDepth of the box along the z-axis.
Return Value
Type: Microsoft.WindowsMobile.DirectX.Direct3D.Mesh
A Mesh object that contains the box.
Exceptions
Exception | Condition |
---|---|
InvalidCallException | The method call is invalid. For example, a method's parameter may contain an invalid value. |
OutOfMemoryException | Direct3D could not allocate sufficient memory to complete the call. |
Remarks
The created box is centered at the origin.
.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.
Platforms
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.
Version Information
.NET Compact Framework
Supported in: 3.5, 2.0