VertexFormats 列挙体
[このドキュメントはプレビュー版であり、後のリリースで変更されることがあります。 空白のトピックは、プレースホルダーとして挿入されています。]
単一のデータ ストリーム内にインターリーブされて格納されている頂点の内容を記述するために使用される頂点形式を定義する値を記述します。
この列挙体には、メンバー値のビットごとの組み合わせを可能にする FlagsAttribute 属性が含まれています。
名前空間: Microsoft.WindowsMobile.DirectX.Direct3D
アセンブリ: Microsoft.WindowsMobile.DirectX (Microsoft.WindowsMobile.DirectX.dll 内)
構文
'宣言
<FlagsAttribute> _
Public Enumeration VertexFormats
'使用
Dim instance As VertexFormats
[FlagsAttribute]
public enum VertexFormats
[FlagsAttribute]
public enum class VertexFormats
[<FlagsAttribute>]
type VertexFormats
メンバー
メンバー名 | 説明 | |
---|---|---|
Position | 位置ビットのためのマスク。 | |
PositionFixed | Position と同じですが、固定小数点演算に使用されます。 | |
TransformedFixed | Transformed と同じですが、固定小数点演算に使用されます。 | |
Transformed | テクスチャ フラグ ビットのマスク値。 | |
PositionMask | 位置ビットのためのマスク。 | |
Normal | 頂点形式は頂点法線ベクターを含んでいます。この値は、Transformed フラグと共には使用できません。 | |
NormalFixed | Normal と同じですが、固定小数点演算に使用されます。 | |
NormalMask | 法線ビットのためのマスク。 | |
Diffuse | 頂点形式はディフューズ色のコンポーネントを含んでいます。 | |
Specular | 頂点形式はスペキュラ色のコンポーネントを含んでいます。 | |
TextureCountMask | テクスチャ フラグ ビットのマスク値。 | |
TextureCountShift | 頂点のテクスチャ座標の数を識別する整数値をシフトするビット数。 | |
Texture0 | この頂点にはテクスチャ座標セットが設定されていません。これらのフラグの値は連続していません。 | |
Texture1 | この頂点に対する 1 つのテクスチャ座標セット。これらのフラグの値は連続していません。 | |
Texture2 | この頂点に対する 2 つのテクスチャ座標セット。これらのフラグの値は連続していません。 | |
Texture3 | この頂点に対する 3 つのテクスチャ座標セット。これらのフラグの値は連続していません。 | |
Texture4 | この頂点に対する 4 つのテクスチャ座標セット。これらのフラグの値は連続していません。 | |
PositionNormal | 頂点形式は頂点法線ベクターを含んでいます。この値は、Transformed 値と共には使用できません。 | |
PositionNormalFixed | PositionNormal と同じですが、固定小数点演算に使用されます。 |
解説
頂点形式コードは、通常、固定機能の頂点処理によって処理されるデータを指定するために使用されます。VertexTextureCoordinate クラスを使用すると、VertexFormats 値を作成できます。
例
VertexFormats 列挙体を使用する方法を次の例に示します。
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);
プラットフォーム
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。 サポートされているバージョンについては、「.NET フレームワークのシステム要件」を参照してください。
バージョン情報
.NET Compact Framework
サポート対象 : 3.5、2.0
参照
参照
Microsoft.WindowsMobile.DirectX.Direct3D 名前空間