Device.MaterialFixed プロパティ
アセンブリ: Microsoft.WindowsMobile.DirectX (microsoft.windowsmobile.directx.dll 内)

Dim instance As Device Dim value As MaterialFixed value = instance.MaterialFixed instance.MaterialFixed = value
public: property MaterialFixed MaterialFixed { MaterialFixed get (); void set (MaterialFixed value); }
/** @property */ public MaterialFixed get_MaterialFixed () /** @property */ public void set_MaterialFixed (MaterialFixed value)
public function get MaterialFixed () : MaterialFixed public function set MaterialFixed (value : MaterialFixed)
現在のマテリアルのプロパティまたは設定するマテリアルのプロパティを表す、MaterialFixed 構造体。


MaterialFixed 構造体を使用する方法を次のコード例に示します。
' The following code example is from the ' Direct3D Mobile Meshes Sample of the ' .NET Compact Framework Samples in the ' .NET Framework SDK. ' In this example, meshes are divided into subsets, ' one for each material. ' Render them in a loop. Dim i As Integer For 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 // .NET Framework SDK. // Meshes are divided into subsets, one for each material. Render them in // a loop for( 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); }


Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- Device.MaterialFixed プロパティのページへのリンク