Skip to content

Latest commit

 

History

History
115 lines (86 loc) · 3.38 KB

nf-directxpackedvector-xmcolor-xmcolor(uint32_t).md

File metadata and controls

115 lines (86 loc) · 3.38 KB
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.
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
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
XMCOLOR::XMCOLOR
directxpackedvector/XMCOLOR::XMCOLOR
c++
APIRef
kbSyntax
COM
DirectXPackedVector.h
XMCOLOR.XMCOLOR

XMCOLOR::XMCOLOR(uint32_t)

-description

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++.
 

-parameters

-param Color

The values of four color components in a packed format.

-remarks

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.

-see-also

Reference

XMCOLOR

XMCOLOR Constructors