XMBYTE2::XMBYTE2(constint8_t*) function (directxpackedvector.h)

Initializes a new instance of XMBYTE2 from a two-element int8_t array argument.

This constructor initializes a new instance of XMBYTE2 from a two-element int8_t array argument.

Note  This constructor is only available with C++.

Syntax

void XMBYTE2(
  const int8_t *pArray
) noexcept;

Parameters

pArray

Two-element int8_t array containing the values used to initialize the two components of a new instance of XMBYTE2.

Return value

None

Remarks

The following pseudocode demonstrates the operation of this constructor:

XMBYTE2 instance;
instance.x = pArray[0];
instance.y = pArray[1];

Requirements

Requirement Value
Target Platform Windows
Header directxpackedvector.h

See also

XMBYTE2

XMBYTE2 Constructors