[Mingw-w64-public] [PATCH v2] headers: Implement quaternion functions in windowsnumerics.h

2022-11-23 Thread Martin Storsjö
Also implement a couple make_float4x4_* functions that are useful for constructing input for some tests. This reduces the number of unimplemented functions in this header a little bit. Signed-off-by: Martin Storsjö --- v2: Added an orthogonality check in decompose(), and check that no scale fac

Re: [Mingw-w64-public] [PATCH] headers: Implement quaternion functions in windowsnumerics.h

2022-11-23 Thread Martin Storsjö
On Wed, 23 Nov 2022, Alvin Wong wrote: On 22/11/2022 20:07, Martin Storsjö wrote: + inline bool decompose(const float4x4 &mat, float3 *out_scale, quaternion *out_rot, float3 *out_translate) { +float4x4 val = mat; +if (out_translate) + *out_translate = translation(val); +val.m

Re: [Mingw-w64-public] [PATCH] headers: Implement quaternion functions in windowsnumerics.h

2022-11-23 Thread Alvin Wong via Mingw-w64-public
On 22/11/2022 20:07, Martin Storsjö wrote: + inline bool decompose(const float4x4 &mat, float3 *out_scale, quaternion *out_rot, float3 *out_translate) { +float4x4 val = mat; +if (out_translate) + *out_translate = translation(val); +val.m41 = val.m42 = val.m43 = 0.0f; +float

[Mingw-w64-public] [PATCH] headers/shlobj.h: Add missing KNOWN_FOLDER_FLAG constants

2022-11-23 Thread Alvin Wong via Mingw-w64-public
Signed-off-by: Alvin Wong --- The docs states that the preexisting KF_FLAG_NO_APPCONTAINER_REDIRECTION constant was introduced in win8, but the current version guard checks for win7 instead. I left it as is. mingw-w64-headers/include/shlobj.h | 11 +++ 1 file changed, 11 insertions(+) d

Re: [Mingw-w64-public] [PATCH] headers: Add mapiaux.h

2022-11-23 Thread LIU Hao
在 2022-11-23 11:57, Biswapriyo Nath 写道: 0001-headers-Add-mapiaux.h.patch From 68cf28626b3ffee741db88f31ddd1f71b57ea23e Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Wed, 23 Nov 2022 09:20:47 +0530 Subject: [PATCH] headers: Add mapiaux.h Tested with pywin32 Signed-off-by: Biswapriyo Nat

Re: [Mingw-w64-public] [PATCH] headers: Implement quaternion functions in windowsnumerics.h

2022-11-23 Thread LIU Hao
在 2022-11-22 20:07, Martin Storsjö 写道: Also implement a couple make_float4x4_* functions that are useful for constructing input for some tests. This reduces the number of unimplemented functions in this header a little bit. Signed-off-by: Martin Storsjö --- For some tests, this doesn't use li