VertexTextureCoordinate.Size1 メソッド
[このドキュメントはプレビュー版であり、後のリリースで変更されることがあります。 空白のトピックは、プレースホルダーとして挿入されています。]
柔軟な頂点形式の記述において、テクスチャ座標の size-1 形式の識別に使用されるビット パターンを作成します。
名前空間: Microsoft.WindowsMobile.DirectX.Direct3D
アセンブリ: Microsoft.WindowsMobile.DirectX (Microsoft.WindowsMobile.DirectX.dll 内)
構文
'宣言
Public Shared Function Size1 ( _
coordIndex As Integer _
) As VertexFormats
'使用
Dim coordIndex As Integer
Dim returnValue As VertexFormats
returnValue = VertexTextureCoordinate.Size1(coordIndex)
public static VertexFormats Size1(
int coordIndex
)
public:
static VertexFormats Size1(
int coordIndex
)
static member Size1 :
coordIndex:int -> VertexFormats
パラメーター
- coordIndex
型 : System.Int32
テクスチャ座標サイズ (1、2、3、または 4 次元) が適用されるテクスチャ座標セットを識別する値。
戻り値
型 : Microsoft.WindowsMobile.DirectX.Direct3D.VertexFormats
テクスチャ座標を示す 1 つ以上の VertexFormats フラグ。
例
Size1 メソッドの使用方法を次の例に示します。
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);
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分的に信頼される側のコードからライブラリの使用」を参照してください。
プラットフォーム
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。 サポートされているバージョンについては、「.NET フレームワークのシステム要件」を参照してください。
バージョン情報
.NET Compact Framework
サポート対象 : 3.5、2.0