Microsoft DirectX 8.1 (Visual Basic)

CONST_D3DVERTEXBLENDFLAGS

Defines flags used to control the number or matrices that the system applies when performing multimatrix vertex blending.

Enum CONST_D3DVERTEXBLENDFLAGS
    D3DVBF_DISABLE     =   0
    D3DVBF_1WEIGHTS    =   1
    D3DVBF_2WEIGHTS    =   2
    D3DVBF_3WEIGHTS    =   3
    D3DVBF_TWEENING    = 255 (&HFF)
    D3DVBF_0WEIGHTS    = 256 (&H100)
End Enum

Constants

D3DVBF_DISABLE
Disable vertex blending; apply only the world matrix specified by the D3DTS_WORLD transformation state.
D3DVBF_1WEIGHTS
Enable vertex blending between the two matrices set by the D3DTS_WORLD and D3DTS_WORLD1 transformation states.
D3DVBF_2WEIGHTS
Enable vertex blending between the three matrices set by the D3DTS_WORLD, D3DTS_WORLD1, and D3DTS_WORLD2 transformation states.
D3DVBF_3WEIGHTS
Enable vertex blending between the four matrices set by the D3DTS_WORLD, D3DTS_WORLD1, D3DTS_WORLD2, and D3DTS_WORLD3 transformation states.
D3DVBF_TWEENING
Vertex blending is done by using the value assigned to D3DRS_TWEENFACTOR.
D3DVBF_0WEIGHTS
Use a single matrix with a weight of 1.0.

Remarks

These flags are used to set the value of the D3DRS_VERTEXBLEND render state for the CONST_D3DRENDERSTATETYPE enumeration.

Geometry blending (multimatrix vertex blending) requires that your application use a vertex format that has blending (beta) weights for each vertex.

See Also

CONST_D3DRENDERSTATETYPE