Condividi tramite


Struttura CustomVertex.TransformedColored

Aggiornamento: novembre 2007

Rappresenta una struttura di formati del vertice personalizzata contenente vertici trasformati e informazioni sul colore.

Spazio dei nomi:  Microsoft.WindowsMobile.DirectX.Direct3D
Assembly:  Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)

Sintassi

'Dichiarazione
Public Structure TransformedColored
'Utilizzo
Dim instance As CustomVertex.TransformedColored
public struct TransformedColored
public value class TransformedColored
JScript supporta l'utilizzo di strutture ma non la dichiarazione di nuove.

Esempi

Nell'esempio di codice riportato di seguito viene illustrato come utilizzare la struttura di formati del vertice personalizzata.

' This code example is taken from the
' Direct3D Mobile Vertices Sample
' of the .NET Compact Framework Samples in the SDK.

Private Sub OnCreateDevice(ByVal sender As Object, ByVal e As EventArgs) 
    Dim dev As Device = CType(sender, Device)
    ' Create the vertex buffer.
    vertexBuffer = New VertexBuffer(GetType(CustomVertex.TransformedColored), 3, dev, 0, CustomVertex.TransformedColored.Format, Pool.Managed)
    AddHandler vertexBuffer.Created, AddressOf Me.OnCreateVertexBuffer
    Me.OnCreateVertexBuffer(vertexBuffer, Nothing)

End Sub
// This code example is taken from the
// Direct3D Mobile Vertices Sample
// of the .NET Compact Framework Samples in the SDK.

    private void OnCreateDevice(object sender, EventArgs e)
    {
        Device dev = (Device)sender;
        // Now Create the VB
        vertexBuffer = new VertexBuffer(typeof(CustomVertex.TransformedColored), 3, dev, 0, CustomVertex.TransformedColored.Format, Pool.Managed);
        vertexBuffer.Created += new System.EventHandler(this.OnCreateVertexBuffer);
        this.OnCreateVertexBuffer(vertexBuffer, null);
    }

Codice thread safe

Qualsiasi membro static (Shared in Visual Basic) pubblico di questo tipo è thread-safe. I membri di istanza non sono garantiti come thread-safe.

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

Vedere anche

Riferimenti

Membri CustomVertex.TransformedColored

Spazio dei nomi Microsoft.WindowsMobile.DirectX.Direct3D

Altre risorse

Programmazione per Mobile Direct3D in .NET Compact Framework