Re: [Mingw-w64-public] missing C api for direct composition

2020-11-06 Thread Biswapriyo Nath
It is not possible to write dcomp.h in the C language in a normal way.
In the dcomp.h header file, there are many interfaces with member
function overloading which is not possible in C. For example, See
IDCompositionTranslateTransform interface. One can rewrite SetOffsetX
function as SetOffsetX_1 and SetOffsetX_2 to overcome in C. But
programmers have to edit every project in that way to circumvent it.

If you need a specific interface for your C project you could rewrite
that interface in a C header file and include it. COM interface is
just a structure of function pointers (VFT).


___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] missing C api for direct composition

2020-11-06 Thread Vincent Torri
hello

so trying to port in C the code in
https://docs.microsoft.com/en-us/archive/msdn-magazine/2014/june/windows-with-c-high-performance-window-layering-using-the-windows-composition-engine,
i've seen that there is no C API in dcomp.h (dcomp.h/idl does not
exist in wine)

I hope someone will be able to add it.

thank you

Vincent Torri


___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] d2d1_1.h : plenty of C API missing

2020-11-06 Thread Vincent Torri
On Thu, Nov 5, 2020 at 5:30 PM Biswapriyo Nath  wrote:
>
> Vincent Torri, if you are not familiar with the header files here, I
> may send the required patches this week.

that would be very nice if you can send those patches

thank you

Vincent Torri


___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public