Platform SDK: DirectX |
The D3DRGB macro initializes a color with the supplied RGB values.
D3DRGB(r, g, b) \ (0xff000000L | ( ((long)((r) * 255)) << 16) | \ (((long)((g) * 255)) << 8) | (long)((b) * 255))
Returns the D3DCOLOR value corresponding to the supplied RGB values.
Windows NT/2000: Requires Windows NT 4.0 SP3 or later.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Version: Requires DirectX 2.0 or later.
Header: Declared in d3dtypes.h.