Platform SDK: DirectX |
The D3DX_DEVICEDESC supplies the following operator overloads and type casts.
#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; // 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