D3DCOLOR_COLORVALUE macro

Initializes a color with the supplied red, green, blue, and alpha floating-point values.

Syntax

D3DCOLOR D3DCOLOR_COLORVALUE(
   float r,
   float g,
   float b,
   float a
);

Parameters

r

Red component of the color. This value must be a floating-point value in the range 0.0 through 1.0.

g

Green component of the color. This value must be a floating-point value in the range 0.0 through 1.0.

b

Blue component of the color. This value must be a floating-point value in the range 0.0 through 1.0.

a

Alpha component of the color. This value must be a floating-point value in the range 0.0 through 1.0.

Return value

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

Requirements

Requirement Value
Header
D3d9types.h

See also

Macros