Go to the source code of this file.
|
#define | D3DCOLOR_DEFINED |
|
#define | D3DCOLOR_ARGB(a, r, g, b) ((D3DCOLOR)((((a)&0xff)<<24)|(((r)&0xff)<<16)|(((g)&0xff)<<8)|((b)&0xff))) |
|
#define | D3DCOLOR_XRGB(r, g, b) D3DCOLOR_ARGB(0xff,r,g,b) |
| 0xff = COLOR_ALPHA_OPAQUE, but don't change it because it conflicts with DX9 "#define". More...
|
|
#define | ColorRefDEF(n, r, g, b) COLORREF_##n = RGB(r,g,b), |
|
#define | ColorRefDEF(n, r, g, b) D3DCOLOR_##n = D3DCOLOR_XRGB(r,g,b), |
|
- Copyright
- 1992 - 2020 Dennis Robinson (http://www.menasoft.com)
◆ ColorRefDEF [1/2]
#define ColorRefDEF |
( |
|
n, |
|
|
|
r, |
|
|
|
g, |
|
|
|
b |
|
) |
| COLORREF_##n = RGB(r,g,b), |
◆ ColorRefDEF [2/2]
◆ D3DCOLOR_ARGB
#define D3DCOLOR_ARGB |
( |
|
a, |
|
|
|
r, |
|
|
|
g, |
|
|
|
b |
|
) |
| ((D3DCOLOR)((((a)&0xff)<<24)|(((r)&0xff)<<16)|(((g)&0xff)<<8)|((b)&0xff))) |
◆ D3DCOLOR_DEFINED
◆ D3DCOLOR_XRGB
0xff = COLOR_ALPHA_OPAQUE, but don't change it because it conflicts with DX9 "#define".
◆ D3DCOLOR
Stuff normally defined in windows.h or DirectX headers.
ARGB (high to low bits). cColorDX. MUST use DWORD (not UINT32) to match "d3d9types.h"