Platform SDK: DirectX |
D3DRGB マクロは、指定の RGB 値を使用して色を初期化する。
D3DRGB(r, g, b) \ (0xff000000L | ( ((long)((r) * 255)) << 16) | \ (((long)((g) * 255)) << 8) | (long)((b) * 255))
指定された RGB 値に対応する D3DCOLOR 値を返す。
Windows NT/2000 :Windows NT 4.0 SP3 またはそれ以降が必要。
Windows 95/98 : Windows 95 以降が必要。Windows 95 用に再配布可能な形で使用可能。
バージョン : DirectX 2.0 以降が必要。
ヘッダー : d3dtypes.h で宣言。