Platform SDK: DirectX |
The CONST_D3DFVFCAPSFLAGS enumeration defines values present within or used with the lFVFCaps member of the D3DDEVICEDESC7 type.
Enum CONST_D3DFVFCAPSFLAGS D3DFVFCAPS_DONOTSTRIPELEMENTS = 524288 D3DFVFCAPS_TEXCOORDCOUNTMASK = 65535 End Enum
The following Visual Basic code fragment masks the low 16-bits of the lFVFCaps member to determine the total number of texture coordinate sets that the device can simultaneously use for multiple texture blending:
Dim HALdesc As D3DDEVICEDESC7, HELdesc As D3DDEVICEDESC7 Dim iTexCoords As Integer ' The d3ddevice variable is assumed to be referece to ' a valid Direct3DDevice3 object. Call d3ddevice.GetCaps(HALDesc, HELDesc) ' Mask the low 16-bits and set them to an integer variable. iTexCoords = (HALDesc.lFVFCaps And D3DFVFCAPS_TEXCOORDCOUNTMASK)