/* ------------------------------------------------------- */ D3DCOLORVALUE DX::Convert(const Color4& color) { D3DCOLORVALUE result; result.a = color.A(); result.r = color.R(); result.g = color.G(); result.b = color.B(); return result; }
/* ------------------------------------------------------- */ unsigned int DX::ConvertUInt(const Color4& color) { return D3DCOLOR_ARGB(int(color.A()*255.0f), int(color.R()*255.0f), int(color.G()*255.0f), int(color.B()*255.0f)); }