DirectX SDK |
The CONST_D3DTEXCOORDINDEXFLAGS enumeration defines values used in combination with the index values set with the D3DTSS_TEXCOORDINDEX texture-stage state.
Type CONST_D3DTEXCOORDINDEXFLAGS D3DTSS_TCI_CAMERASPACENORMAL = 65536 D3DTSS_TCI_CAMERASPACEPOSITION = 131072 D3DTSS_TCI_CAMERASPACEREFLECTIONVECTOR = 196608 D3DTSS_TCI_PASSTHRU = 0 End Type
The values from this enumeration (except for D3DTSS_TCI_PASSTHRU, which resolves to zero) change how the system uses the index value being set in D3DTSS_TEXCOORDINDEX. Normally, the value set in D3DTSS_TEXCOORDINDEX controls the texture coordinate set used to address the texture. However, when you include the D3DTSS_TCI_CAMERASPACENORMAL, D3DTSS_TCI_CAMERASPACEPOSITION, or D3DTSS_TCI_CAMERASPACEREFLECTIONVECTOR values (as a logical Or operation with the index being set), the system uses the index strictly to determine the texture wrapping mode.
Values within this enumeration are useful to applications that benefit from automatic generation of texture coordinates for environment mapping.