Beispiel #1
0
/* ------------------------------------------------------- */
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;
}
Beispiel #2
0
/* ------------------------------------------------------- */
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));
}