| ?/TD> |
| Microsoft DirectX 9.0 |
Supplies the following operator overloads and type casts for D3DXCOLOR structures.
Syntax
#ifdef __cplusplus
public:
D3DXCOLOR() {}
D3DXCOLOR(DWORD argb);
D3DXCOLOR(CONST FLOAT*);
D3DXCOLOR(CONST D3DCOLORVALUE&);
D3DXCOLOR(FLOAT r, FLOAT g, FLOAT b, FLOAT a);
// casting
operator DWORD()const;
operator FLOAT*();
operator CONST FLOAT*()const;
operator D3DCOLORVALUE*();
operator CONST D3DCOLORVALUE*() const;
operator D3DCOLORVALUE&();
operator CONST D3DCOLORVALUE&() const;
// assignment operators
D3DXCOLOR& operator += (CONST D3DXCOLOR&);
D3DXCOLOR& operator -= (CONST D3DXCOLOR&);
D3DXCOLOR& operator *= (FLOAT);
D3DXCOLOR& operator /= (FLOAT);
// unary operators
D3DXCOLOR operator + () const;
D3DXCOLOR operator - () const;
// binary operators
D3DXCOLOR operator + (CONST D3DXCOLOR&) const;
D3DXCOLOR operator - (CONST D3DXCOLOR&) const;
D3DXCOLOR operator * (FLOAT) const;
D3DXCOLOR operator / (FLOAT) const;
friend D3DXCOLOR operator * (FLOAT, CONST D3DXCOLOR&);
bool operator == (CONST D3DXCOLOR&)const;
bool operator != (CONST D3DXCOLOR&)const;
#endif //__cplusplus
Members
Structure Information
Header d3dx9math.h Minimum operating systems Windows 98