D3DVERTEX
This structure contains information about an untransformed and unlit vertex.
typedef struct _D3DVERTEX {
union {
D3DVALUE x; /* Homogeneous coordinates */
D3DVALUE dvX;
};
union {
D3DVALUE y;
D3DVALUE dvY;
};
union {
D3DVALUE z;
D3DVALUE dvZ;
};
union {
D3DVALUE nx; /* Normal */
D3DVALUE dvNX;
};
union {
D3DVALUE ny;
D3DVALUE dvNY;
};
union {
D3DVALUE nz;
D3DVALUE dvNZ;
};
union {
D3DVALUE tu; /* Texture coordinates */
D3DVALUE dvTU;
};
union {
D3DVALUE tv;
D3DVALUE dvTV;
};
#if(DIRECT3D_VERSION >= 0x0500)
#if (defined __cplusplus) && (defined D3D_OVERLOADS)
_D3DVERTEX() { }
_D3DVERTEX(const D3DVECTOR& v, const D3DVECTOR& n, float _tu, float tv)
{ x = v.x; y = v.y; z = v.z;
nx = n.x; ny = n.y; nz = n.z;
tu = _tu; tv = _tv;
}
#endif
#endif /* DIRECT3D_VERSION >= 0x0500 */
} D3DVERTEX, *LPD3DVERTEX;
Members
- x
Values describing the homogeneous coordinates of the vertex. - dvX
Values describing the homogeneous coordinates of the vertex. - y
Values describing the homogeneous coordinates of the vertex. - dvY
Values describing the homogeneous coordinates of the vertex. - z
Values describing the homogeneous coordinates of the vertex. - dvZ
Values describing the homogeneous coordinates of the vertex. - nx
Values describing the normal coordinates of the vertex. - dvNX
Values describing the normal coordinates of the vertex. - ny
Values describing the normal coordinates of the vertex. - dvNY
Values describing the normal coordinates of the vertex. - nz
Values describing the normal coordinates of the vertex. - dvNZ
Values describing the normal coordinates of the vertex. - tu
Values describing the texture coordinates of the vertex. - dvTU
Values describing the texture coordinates of the vertex. - tv
Values describing the texture coordinates of the vertex. - dvTV
Values describing the texture coordinates of the vertex.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: D3dtypes.h.
See Also
Last updated on Tuesday, May 18, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.