D3DDRAWPRIMITIVESTRIDEDDATA

The D3DDRAWPRIMITIVESTRIDEDDATA structure contains flexible vertex format components.

typedef struct D3DDRAWPRIMITIVESTRIDEDDATA  {
    D3DDP_PTRSTRIDE position;
    D3DDP_PTRSTRIDE normal;
    D3DDP_PTRSTRIDE diffuse;
    D3DDP_PTRSTRIDE specular;
    D3DDP_PTRSTRIDE textureCoords[D3DDP_MAXTEXCOORD];
} D3DDRAWPRIMITIVESTRIDEDDATA , *LPD3DDRAWPRIMITIVESTRIDEDDATA;
 

Members

position and normal
D3DDP_PTRSTRIDE structures that point to arrays of position and normal vectors for a collection of vertices (each vector is a 3-element array of float values).
diffuse and specular
D3DDP_PTRSTRIDE structures that point to diffuse and specular color information for a collection of vertices. Each color component is an 8-8-8-8 RGBA value.
textureCoords
An 8-element array of D3DDP_PTRSTRIDE structures. Each element in the array is an array of texture coordinates for the collection of vertices. Your application determines which array of texture coordinates is used for a given texture stage by calling the IDirect3DDevice3::SetTextureStageState method with the D3DTSS_TEXCOORDINDEX stage state value.

QuickInfo

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in d3dtypes.h.

See Also

D3DDP_PTRSTRIDE, Strided Vertex Format, Vertex Formats