Microsoft SDK for Java

D3dTriangle Class Fields

The D3dTriangle Class contains the following fields.

flags Flags describing which edges of the triangle to enable (this information is useful only in wire-frame mode). This value can be a combination of the following edge and strip flags:

Edge Flags
D3DTRIFLAG_EDGEENABLE1

Edge defined by v1-v2.

D3DTRIFLAG_EDGEENABLE2

Edge defined by v2-v3.

D3DTRIFLAG_EDGEENABLE3

Edge defined by v3-v1.

D3DTRIFLAG_EDGEENABLETRIANGLE

All edges.

Strip and Fan Flags
D3DTRIFLAG_EVEN

The v1-v2 edge of the current triangle is adjacent to the v3-v1 edge of the previous triangle; that is, v1 is the previous v1, and v2 is the previous v3.

D3DTRIFLAG_ODD

The v1-v2 edge of the current triangle is adjacent to the v2-v3 edge of the previous triangle; that is, v1 is the previous v3, and v2 is the previous v2.

D3DTRIFLAG_START

Begin the strip or fan, loading all three vertices.

D3DTRIFLAG_STARTFLAT(len)

If this triangle is culled, also cull the specified number of subsequent triangles. This length must be greater than zero and less than 30.

v1 Vertex describing the triangle.
v2 Vertex describing the triangle.
v3 Vertex describing the triangle.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.