Share via


MaterialFixed 構造体

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

マテリアルのプロパティを固定小数点の構造体で指定します。

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

構文

'宣言
Public Structure MaterialFixed
'使用
Dim instance As MaterialFixed
public struct MaterialFixed
public value class MaterialFixed
[<SealedAttribute>]
type MaterialFixed =  struct end

解説

この構造体は、固定小数点演算をサポートします。

MaterialFixed 構造体を使用する方法を次のコード例に示します。

' The following code example is from the' Direct3D Mobile Meshes Sample of the ' .NET Compact Framework Samples in the SDK.
' In this example, meshes are divided into subsets, ' one for each material.' Render them in a loop.Dim i AsIntegerFor i = 0 To meshMaterials.Length
    ' Set the material and texture for this subset
    device.MaterialFixed = meshMaterials(i)
    device.SetTexture(0, meshTextures(i))

    ' Draw the mesh subset
    mesh.DrawSubset(i)
Next i
// The following code example is from the// Direct3D Mobile Meshes Sample of the// .NET Compact Framework Samples in the SDK.// Meshes are divided into subsets, one for each material. Render them in// a loopfor( int i=0; i<meshMaterials.Length; i++ )
{
    // Set the material and texture for this subset
    device.MaterialFixed = meshMaterials[i];
    device.SetTexture(0, meshTextures[i]);

    // Draw the mesh subset
    mesh.DrawSubset(i);
}

スレッド セーフ

この型のすべてのパブリック static (Visual Basic では Shared) メンバーは、スレッド セーフです。 インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

プラットフォーム

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

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

バージョン情報

.NET Compact Framework

サポート対象 : 3.5、2.0

参照

参照

MaterialFixed メンバー

Microsoft.WindowsMobile.DirectX.Direct3D 名前空間

その他の技術情報

.NET Compact Framework でモバイル Direct3D プログラミング