Platform SDK: DirectX |
The bracket ("[ ]") operators are overloaded operators for the D3D_OVERLOADS extensions. You can use empty brackets ("[ ]") for access grants, "v[0]" to access the x component of a vector, "v[1]" to access the y component, and "v[2]" to access the z component. These operators are defined as follows:
const D3DVALUE&operator[ ](int i) const; D3DVALUE&operator[ ](int i); inline const D3DVALUE& _D3DVECTOR::operator[ ](int i) const { return (&x)[i]; } inline D3DVALUE& _D3DVECTOR::operator[ ](int i) { return (&x)[i]; }
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Version: Requires DirectX 5.0 or later.
Header: Declared in d3d.h.