Microsoft DirectX 8.1 (C++) |
Initializes a color with the supplied red, green, blue, and alpha floating-point values.
D3DCOLOR_COLORVALUE(r,g,b,a) \ D3DCOLOR_RGBA((DWORD)((r)*255.f),(DWORD)((g)*255.f),(DWORD)((b)*255.f),(DWORD)((a)*255.f))
Returns the D3DCOLOR value that corresponds to the supplied RGBA values.
Header: Declared in D3d8types.h.