Closed walbourn closed 2 years ago
Note this content was generated using the attach program. I verified that it reproduces the original DirectXColors.h values
The only open question for me is if I need to provide an opt-in preprocessor define like _XM_DEFINE_LINEAR_COLORS
to get these, or if it's fine to just take the minor object bloat even when clients aren't using these.
DirectXMath has always included constants for the .NET colors, but that meant having to do conversions at runtime to get them into linear space or using a different header set.
This PR adds the same .NET colors in Linear colorspace in the
ColorsLinear
C++ namespace.