Proprietà Device.MaterialFixed
Aggiornamento: novembre 2007
Ottiene o imposta le proprietà correnti del materiale per la periferica, mediante operazioni matematiche a virgola fissa.
Spazio dei nomi: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)
Sintassi
'Dichiarazione
Public Property MaterialFixed As MaterialFixed
'Utilizzo
Dim instance As Device
Dim value As MaterialFixed
value = instance.MaterialFixed
instance.MaterialFixed = value
public MaterialFixed MaterialFixed { get; set; }
public:
property MaterialFixed MaterialFixed {
MaterialFixed get ();
void set (MaterialFixed value);
}
public function get MaterialFixed () : MaterialFixed
public function set MaterialFixed (value : MaterialFixed)
Valore proprietà
Tipo: Microsoft.WindowsMobile.DirectX.Direct3D.MaterialFixed
Struttura MaterialFixed che rappresenta le proprietà correnti del materiale da ottenere o le proprietà del materiale da impostare.
Eccezioni
Eccezione | Condizione |
---|---|
InvalidCallException | Le proprietà di una struttura MaterialFixed non sono valide. |
Esempi
Nell'esempio di codice riportato di seguito viene illustrato come utilizzare una struttura 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 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 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);
}
Autorizzazioni
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.
Piattaforme
Windows CE, Windows Mobile per Smartphone, Windows Mobile per Pocket PC
.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.
Informazioni sulla versione
.NET Compact Framework
Supportato in: 3.5, 2.0