The MASM Forum

General => The Workshop => Topic started by: K_F on March 12, 2014, 07:13:01 PM

Title: Msoft SDK Direct2D H/INC files ?
Post by: K_F on March 12, 2014, 07:13:01 PM
Does anyone have the latest MSoft Direct2D SDK H/INC files lying around .. that they can pass on.

My SDK won't install properly (asking for Admin rights when I'm using an Admin account ("£$"$"£"!!@@O))  :icon13:

Thanks
Van
Title: Re: Msoft SDK Direct2D H/INC files ?
Post by: TWell on March 12, 2014, 07:40:09 PM
What version SDK you have?
Title: Re: Msoft SDK Direct2D H/INC files ?
Post by: K_F on March 12, 2014, 08:14:15 PM
V7.1

Would it make a difference.. I can't install it. ?
Title: Re: Msoft SDK Direct2D H/INC files ?
Post by: TWell on March 12, 2014, 08:22:07 PM
If you have that DVD, you can decompress those files from WinSDKBuild\WinSDKBuild_x86.msi.
Title: Re: Msoft SDK Direct2D H/INC files ?
Post by: K_F on March 12, 2014, 11:03:10 PM
Ok thanks.. I'll look at that
:)
Title: Re: Msoft SDK Direct2D H/INC files ?
Post by: TouEnMasm on March 13, 2014, 03:28:42 AM

Those files are translated for masm here:
http://masm32.com/board/index.php?topic=563.msg4563#msg4563 (http://masm32.com/board/index.php?topic=563.msg4563#msg4563)
Title: Re: Msoft SDK Direct2D H/INC files ?
Post by: qWord on March 13, 2014, 04:22:57 PM
For Windows 8 Microsoft did an comprehensive update to D2D, which is fortunately also available to Win7 users. I've update my headers to the latest SDK for Windows 8.1 and made them compatible/usable with MASM32.
For reasons of simplification the includes are combine to:
The methods can be called with the vf()- macro as usual.

In the attachment the include files, libraries and an example.

regards, qWord

Title: Re: Msoft SDK Direct2D H/INC files ?
Post by: Gunther on March 13, 2014, 09:21:24 PM
Hi qWord,

solid work.  :t Thank you for providing the files.

Gunther
Title: Re: Msoft SDK Direct2D H/INC files ?
Post by: K_F on March 14, 2014, 01:29:49 AM
Nice.. thanks qWord.
Title: Re: Msoft SDK Direct2D H/INC files ?
Post by: Siekmanski on March 14, 2014, 07:09:01 AM
Hi qWord,

Thank you for this nice example.

Marinus
Title: Re: Msoft SDK Direct2D H/INC files ?
Post by: jj2007 on March 14, 2014, 03:56:21 PM
Good work, qWord :t

    d2d1.inc          (Win7 / Vista)
    d2d1_1.inc      (Win8 / Win7)
    d2d1_2.inc      (Win8.1 / Win8)


Just a question: Does that imply that a Win 8.1 program assembled with d2d1_2.inc will not work on Win7, and the other way round, i.e. d2d1_1.inc won't work with Win 8.1?
Title: Re: Msoft SDK Direct2D H/INC files ?
Post by: qWord on March 14, 2014, 04:29:33 PM
Quote from: jj2007 on March 14, 2014, 03:56:21 PM

    d2d1.inc          (Win7 / Vista)
    d2d1_1.inc      (Win8 / Win7)
    d2d1_2.inc      (Win8.1 / Win8)


Just a question: Does that imply that a Win 8.1 program assembled with d2d1_2.inc will not work on Win7, and the other way round, i.e. d2d1_1.inc won't work with Win 8.1?
yep, I forgot some information in that listing:
Some other things to mention:
- the example can't assembled with jWasm due an incompatibility
- all structures and enumeration types have a pointer type PType (even if not declared by the headers)
-  d2d1_2.inc requires d2d1_1.inc and d2d1.inc; d2d1_1.inc requires d2d1.inc

regards, qWord
Title: Re: Msoft SDK Direct2D H/INC files ?
Post by: qWord on March 19, 2014, 10:21:02 AM
I've translate some more (missing) headers for:
- DirectX Graphics Infrastructure (DXGI)
- Windows Imaging Component (WIC)
- DirectWrite (DWrite)

Furthermore a second example is added, which use a DXGI swap chain as render target (also use WIC and DWrite).

regards, qWord
Title: Re: Msoft SDK Direct2D H/INC files ?
Post by: GoneFishing on March 21, 2014, 07:29:27 AM
Amazing demos  :t
Title: Re: Msoft SDK Direct2D H/INC files ?
Post by: Gunther on March 21, 2014, 07:47:30 AM
Hi qWord,

:t  :icon14:

Gunther
Title: Re: Msoft SDK Direct2D H/INC files ?
Post by: GoneFishing on March 21, 2014, 07:51:05 AM
qWord ,
May we expect animated fire or something else in the third example ?  ;)
Title: Re: Msoft SDK Direct2D H/INC files ?
Post by: K_F on March 21, 2014, 09:37:51 AM
I'm already onto it for a few days now QW  :t big thanks

I've had no sleep for a few days now.. flu'ish...
Flowers but I'll be baaaaaack  :bgrin:
Title: Re: Msoft SDK Direct2D H/INC files ?
Post by: qWord on March 23, 2014, 07:07:38 AM
Quote from: vertograd on March 21, 2014, 07:51:05 AM
qWord ,
May we expect animated fire or something else in the third example ?  ;)
probably not.
Sounds like a job for a pixel shaders, which can be used through custom Direct2D-Effects (http://msdn.microsoft.com/en-us/library/windows/desktop/jj710194%28v=vs.85%29.aspx).

qWord
Title: Re: Msoft SDK Direct2D H/INC files ?
Post by: GoneFishing on March 23, 2014, 07:27:22 AM
...