UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:directxpackedvector.XMCOLOR.XMCOLOR(uint32_t) |
XMCOLOR::XMCOLOR(uint32_t) (directxpackedvector.h) |
Initializes a new instance of XMCOLOR from a uint32_t variable containing component data in a packed format. |
|
dxmath\xmcolor_ctor_2.htm |
dxmath |
M:Microsoft.directx_sdk.reference.XMCOLOR.#ctor(uint32_t) |
12/05/2018 |
XMCOLOR, XMCOLOR constructor [DirectX Math Support APIs], XMCOLOR constructor [DirectX Math Support APIs],XMCOLOR structure, XMCOLOR structure [DirectX Math Support APIs],XMCOLOR constructor, XMCOLOR.XMCOLOR, XMCOLOR.XMCOLOR(uint32_t), XMCOLOR::XMCOLOR, XMCOLOR::XMCOLOR(uint32_t), dxmath.xmcolor_ctor_2 |
directxpackedvector.h |
Windows |
DirectX::PackedVector |
Windows |
19H1 |
|
|
|
|
|
|
Initializes a new instance of XMCOLOR
from a uint32_t
variable containing
component data in a packed format.
This constructor initializes a new instance of XMCOLOR from a
uint32_t
variable containing component data in a packed format.
Note This constructor is only available under C++.
The values of four color components in a packed format.
The values defining the four components of the new instance of XMCOLOR
are
stored in the argument Packed
as follows:
-
The first 8 bits (bits 0-7) of Packed assigned, as an unsigned
integer, to the a member (alpha channel) of the instance of
XMCOLOR
constructed. -
The second 8 bits (bits 8-15) of Packed assigned, as an unsigned
integer, to the r member (red color channel) of the instance of
XMCOLOR
constructed. -
The third 8 bits (bits 16-23) of Packed assigned, as an unsigned
integer, to the g member (green color channel) of the instance of
XMCOLOR
constructed. -
The fourth 8 bits (bits 24-31) of Packed assigned, as an unsigned
integer, to the b member (blue color channel) of the instance of
XMCOLOR
constructed.
Reference