VertexTextureCoordinate, classe
Mise à jour : novembre 2007
Construit des modèles binaires qui sont utilisés pour identifier les formats de coordonnée de texture dans une description de format de vertex flexible.
Espace de noms : Microsoft.WindowsMobile.DirectX.Direct3D
Assembly : Microsoft.WindowsMobile.DirectX (dans Microsoft.WindowsMobile.DirectX.dll)
Syntaxe
'Déclaration
Public NotInheritable Class VertexTextureCoordinate
'Utilisation
Dim instance As VertexTextureCoordinate
public sealed class VertexTextureCoordinate
public ref class VertexTextureCoordinate sealed
public final class VertexTextureCoordinate
Notes
Une description de format flexible est un code qui décrit la disposition de données dans une mémoire tampon de vertex.
Exemples
L'exemple suivant montre comment utiliser la classe VertexTextureCoordinate.
Dim fvf As VertexFormats
' The vertex format code for a vertex with a position and one 2-D texture coordinate.
fvf = VertexFormats.Position Or VertexFormats.Texture1
' The vertex format code for a vertex with a position, a vertex normal vector,
' and two 2-D texture coordinates.
fvf = VertexFormats.Position Or VertexFormats.Normal Or VertexFormats.Texture2
' The vertex format code for a vertex with a position and two 1-D texture coordinates.
fvf = VertexFormats.Position Or VertexFormats.Texture2 Or VertexTextureCoordinate.Size1(0) Or VertexTextureCoordinate.Size1(1)
' The vertex format code for a vertex with a position and two 1-D texture coordinates with fixed point data.
fvf = VertexFormats.PositionFixed Or VertexFormats.Texture2 Or VertexTextureCoordinate.Size1(0) Or VertexTextureCoordinate.Size1(1) Or VertexTextureCoordinate.Fixed(0) Or VertexTextureCoordinate.Fixed(1)
VertexFormats fvf;
// The vertex format code for a vertex with a position and one 2-D texture coordinate.
fvf = VertexFormats.Position | VertexFormats.Texture1;
// The vertex format code for a vertex with a position, a vertex normal vector,
// and two 2-D texture coordinates.
fvf = VertexFormats.Position | VertexFormats.Normal | VertexFormats.Texture2;
// The vertex format code for a vertex with a position and two 1-D texture coordinates.
fvf = VertexFormats.Position | VertexFormats.Texture2 | VertexTextureCoordinate.Size1(0) | VertexTextureCoordinate.Size1(1);
// The vertex format code for a vertex with a position and two 1-D texture coordinates with fixed point data.
fvf = VertexFormats.PositionFixed | VertexFormats.Texture2 | VertexTextureCoordinate.Size1(0) |
VertexTextureCoordinate.Size1(1) | VertexTextureCoordinate.Fixed(0) | VertexTextureCoordinate.Fixed(1);
Hiérarchie d'héritage
System.Object
Microsoft.WindowsMobile.DirectX.Direct3D.VertexTextureCoordinate
Sécurité des threads
Tous les membres static (Shared en Visual Basic) publics de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.
Plateformes
Windows CE, Windows Mobile pour Smartphone, Windows Mobile pour Pocket PC
Le .NET Framework et le .NET Compact Framework ne prennent pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.
Informations de version
.NET Compact Framework
Pris en charge dans : 3.5, 2.0
Voir aussi
Référence
Membres VertexTextureCoordinate
Microsoft.WindowsMobile.DirectX.Direct3D, espace de noms
Autres ressources
Programmation Direct3D Mobile dans le .NET Compact Framework