Mesh.Box メソッド

[このドキュメントはプレビュー版であり、後のリリースで変更されることがあります。 空白のトピックは、プレースホルダーとして挿入されています。]

左手座標系を使用して、軸に沿ったボックスを含むメッシュを作成します。

名前空間:  Microsoft.WindowsMobile.DirectX.Direct3D
アセンブリ:  Microsoft.WindowsMobile.DirectX (Microsoft.WindowsMobile.DirectX.dll 内)

構文

'宣言
Public Shared Function Box ( _
    device As Device, _
    width As Single, _
    height As Single, _
    depth As Single _
) As Mesh
'使用
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
)
static member Box : 
        device:Device * 
        width:float32 * 
        height:float32 * 
        depth:float32 -> Mesh 

パラメーター

  • height
    型 : System.Single
    y 軸方向のボックスの高さ。
  • depth
    型 : System.Single
    z 軸方向のボックスの深度。

戻り値

型 : Microsoft.WindowsMobile.DirectX.Direct3D.Mesh
ボックスを格納する Mesh オブジェクト。

例外

例外 条件
InvalidCallException

メソッドの呼び出しが無効です。たとえば、メソッドのパラメーターに無効な値が含まれている場合などです。

OutOfMemoryException

Direct3D で、呼び出しを完了するために十分なメモリを割り当てられませんでした。

解説

作成されるボックスの中心は原点となります。

.NET Framework セキュリティ

プラットフォーム

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。 サポートされているバージョンについては、「.NET フレームワークのシステム要件」を参照してください。

バージョン情報

.NET Compact Framework

サポート対象 : 3.5、2.0

参照

参照

Mesh クラス

Mesh メンバー

Microsoft.WindowsMobile.DirectX.Direct3D 名前空間