Click to Rate and Give Feedback
MSDN
MSDN Library
DirectX
SDK Documentation
DirectX Graphics
Direct3D 9
Reference
Direct3D Reference
Macros
 D3DCOLOR_XRGB

  Switch on low bandwidth view
D3DCOLOR_XRGB
Bb172525.XDK_CHM_BANNER_left(en-us,VS.85).jpgBb172525.XDK_CHM_BANNER_right(en-us,VS.85).jpg

D3DCOLOR_XRGB

Initializes a color with the supplied red, green, and blue values.

#define D3DCOLOR_XRGB(r,g,b) D3DCOLOR_ARGB(0xff,r,g,b)

Parameters

r
Red component of the color. This value must be in the range 0 through 255.
g
Green component of the color. This value must be in the range 0 through 255.
b
Blue component of the color. This value must be in the range 0 through 255.

Return Values

Returns the D3DCOLOR value that corresponds to the supplied RGB values.

Requirements

Header: Declared in D3d9types.h.

See Also

D3DCOLOR_ARGB, D3DCOLOR_RGBA

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker