Condividi tramite


Struttura CustomVertex.PositionNormalFixed

Aggiornamento: novembre 2007

Rappresenta una struttura in virgola fissa personalizzata di formati del vertice contenente dati di normale e posizione.

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

Sintassi

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

Note

Questa struttura fornisce il supporto per operazioni matematiche in virgola fissa.

Esempi

Nell'esempio di codice riportato di seguito viene illustrato come utilizzare una struttura CustomVertex.PositionNormalFixed.

' This code example is taken from the
' Managed Direct3D Mobile Lights Tutorial Sample
' of the .NET Compact Framework Samples in the SDK.
' The .NET Compact Framework provides three
' fixed-point structures for custom vertex buffers:
' PositionNormalFixed, PostionOnlyFixed, and TransformedFixed.

vbPosNormalF = New VertexBuffer(GetType(CustomVertex.PositionNormalFixed), 100, dev, Usage.WriteOnly, CustomVertex.PositionNormalFixed.Format, vertexBufferPool)
// This code example is taken from the
// Managed Direct3D Mobile Lights Tutorial Sample
// of the .NET Compact Framework Samples in the SDK.

// The .NET Compact Framework provides three
// fixed-point structures for custom vertex buffers:
// PositionNormalFixed, PostionOnlyFixed, and TransformedFixed.

    vbPosNormalF = new VertexBuffer(
        typeof(CustomVertex.PositionNormalFixed), 100, dev,
        Usage.WriteOnly, CustomVertex.PositionNormalFixed.Format,
        vertexBufferPool);

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.PositionNormalFixed

Spazio dei nomi Microsoft.WindowsMobile.DirectX.Direct3D

Altre risorse

Programmazione per Mobile Direct3D in .NET Compact Framework