VertexFormats Enumeration
TOC
Collapse the table of content
Expand the table of content

VertexFormats Enumeration

Describes values that define a vertex format used to describe the contents of vertices that are stored interleaved in a single data stream.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  Microsoft.WindowsMobile.DirectX.Direct3D
Assembly:  Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)

[FlagsAttribute]
public enum VertexFormats

Member nameDescription
Supported by the .NET Compact FrameworkPositionMask for position bits.
Supported by the .NET Compact FrameworkPositionFixedSame as Position, but for fixed-point math operations.
Supported by the .NET Compact FrameworkTransformedFixedSame as Transformed, but for fixed-point math operations.
Supported by the .NET Compact FrameworkTransformedMask value for texture flag bits.
Supported by the .NET Compact FrameworkPositionMaskMask for position bits.
Supported by the .NET Compact FrameworkNormalVertex format includes a vertex normal vector. This value cannot be used with the Transformed flag.
Supported by the .NET Compact FrameworkNormalFixedSame as Normal, but for fixed-point math operations.
Supported by the .NET Compact FrameworkNormalMaskMask for normal bits.
Supported by the .NET Compact FrameworkDiffuseVertex format includes a diffuse color component.
Supported by the .NET Compact FrameworkSpecularVertex format includes a specular color component.
Supported by the .NET Compact FrameworkTextureCountMaskMask value for texture flag bits.
Supported by the .NET Compact FrameworkTextureCountShiftNumber of bits by which to shift an integer value that identifies the number of texture coordinates for a vertex.
Supported by the .NET Compact FrameworkTexture0No texture coordinate sets for this vertex. The values for these flags are not sequential.
Supported by the .NET Compact FrameworkTexture1One texture coordinate set for this vertex. The values for these flags are not sequential.
Supported by the .NET Compact FrameworkTexture2Two texture coordinate sets for this vertex. The values for these flags are not sequential.
Supported by the .NET Compact FrameworkTexture3Three texture coordinate sets for this vertex. The values for these flags are not sequential.
Supported by the .NET Compact FrameworkTexture4Four texture coordinate sets for this vertex. The values for these flags are not sequential.
Supported by the .NET Compact FrameworkPositionNormalVertex format includes a vertex normal vector. This value cannot be used with the Transformed value.
Supported by the .NET Compact FrameworkPositionNormalFixedSame as PositionNormal, but for fixed-point math operations.

Vertex format codes generally are used to specify data to be processed by fixed function vertex processing. You can use the VertexTextureCoordinate class to construct VertexFormats values.

The following example demonstrates how to use a VertexFormats enumeration.

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);

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Compact Framework

Supported in: 3.5, 2.0

Community Additions

ADD
Show:
© 2016 Microsoft