Welcome to TechNet Blogs Sign in | Join | Help

Updated Direct2D in March DirectX SDK

The March DirectX SDK includes an updated build of Direct2D. Note that this build of Direct2D runs on both Windows 7 and Windows Vista.

http://msdn.microsoft.com/directx

After the Windows 7 Beta release, we received some customer feedback, and made a few minor Direct2D API changes.  These changes are present in the March DirectX SDK, but the documentation will not be ready until the Windows 7 RC release. In the interest of getting prelease code into the hands of customers faster, here is a list of breaking changes...

·         Refactored some values of D2D1_RENDER_TARGET_USAGE into D2D1_RENDER_TARGET_TYPE for better clarity.

·         Added D2D1_FEATURE_LEVEL  structure variable to  D2D1_RENDER_TARGET_PROPERTIES. Allows the caller to specify a minimum hardware feature level (9, 10, etc) to use.

·         Added D2D1_OPACITY_MASK_CONTENT parameter to ID2D1RenderTarget::FillOpacityMask. This tells us what gamma to use.

·         Removed D2D1_GAMMA parameter  from ID2D1RenderTarget::FillOpacityMask. Based on customer feedback, we determined that this parameter was difficult to understand, and the same information could be gleaned by adding a D2D1_OPACITY_MASK_CONTENT parameter.

I've also attached updated Direct2D samples for use with the March DX SDK. You should be able to simply recompile these samples when the Windows 7 RC SDK is released.

If you're using Visual Studio, install the March DX SDK, and make sure that VS's VC++ directories include the following (for example, x86) ...

Tools | Options | Projects and Solutions | VC++ Directories

Executable Files="c:\Program Files (x86)\Microsoft DirectX SDK (March 2009)\Utilities\Bin\x86"

Include Files="c:\Program Files (x86)\Microsoft DirectX SDK (March 2009)\Include"

Library Files="c:\Program Files (x86)\Microsoft DirectX SDK (March 2009)\Lib\x86"

Link with ...

Project | Properties | Configuration Properties | Linker | Input | Additional Dependencies ... 

 

d2d1_beta.lib dwrite_beta.lib D3D10_1_beta.lib dxgi_beta.lib windowscodecs.lib etc...

 

Published Tuesday, March 24, 2009 10:33 PM by Thomas.Olsen

Attachment(s): D2D_DXSDK_Samples.zip

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Updated Direct2D in March DirectX SDK

Any chance for supporting D2D on XP? Please?

Tuesday, March 24, 2009 7:27 PM by xyz

# re: Updated Direct2D in March DirectX SDK

@xyz: "Any chance for supporting D2D on XP? Please?"

No decision has been made on XP yet. We're entirely focused on Windows 7 right now. Vista support was announced a while back at PDC.

Tuesday, March 24, 2009 8:16 PM by Thomas.Olsen

# re: Updated Direct2D in March DirectX SDK

Thanks for getting Vista.

A second vote for adding in XP.

Wednesday, March 25, 2009 10:17 AM by Dave

# re: Updated Direct2D in March DirectX SDK

When you say Direct2d now works on Vista, does that include DirectWrite? Thanks!

Friday, March 27, 2009 12:35 AM by scru

# re: Updated Direct2D in March DirectX SDK

Vista Ultimate x64. Visual Studio 2008 SP1, March DirectX SDK.

Extrusion and SciFiText work perfectly but DxgiSample does not.

_com_error at memory location 0x003deebc

Friday, March 27, 2009 11:28 AM by genifycom

# re: Updated Direct2D in March DirectX SDK

Vista Ultimate x64. Visual Studio 2008 SP1, March 2009 DirectX SDK.

Extrusion and SciFiText work perfectly but DxgiSample does not.

_com_error at memory location 0x003deebc

Thanks

Friday, March 27, 2009 11:31 AM by genifycom

# re: Updated Direct2D in March DirectX SDK

@genifycom: "Vista Ultimate x64. Visual Studio 2008 SP1, March 2009 DirectX SDK. Extrusion and SciFiText work perfectly but DxgiSample does not. _com_error at memory location 0x003deebc. Thanks"

I tried this scenario, and we're not seeing a failure. We did fix some bugs in the Beta SDK sample of DxgiSample, though. Are you building the Beta sample? If so, please get updated source files at the following location, and rebuild:

http://blogs.technet.com/thomasolsen/attachment/3217540.ashx

Wednesday, April 01, 2009 6:01 PM by Thomas.Olsen

# re: Updated Direct2D in March DirectX SDK

Is support or a Connect feedback site available? I can't get RenderTarget->FillMesh() to run in a very simple test.

Thomas

Thursday, April 09, 2009 5:37 AM by Thomas Schmidt

# re: Updated Direct2D in March DirectX SDK

Is there any particular license on the sample code? I'd like to port it over to SlimDX, but we publish everything under the MIT license and I don't want to run into trouble there.

Thursday, April 09, 2009 12:40 PM by Promit Roy

# re: Updated Direct2D in March DirectX SDK

When we will there be some kind of forum support?  I've got a variety of questions I'd like to get answered about the behavior of the current runtime/sdk.  Thanks,

Brian

Friday, April 10, 2009 2:42 PM by Brian Corcoran

# re: Updated Direct2D in March DirectX SDK

@Thomas: "Is support or a Connect feedback site available? I can't get RenderTarget->FillMesh() to run in a very simple test."

If you provide me a snippet of source code that illustrates how you're using FillMesh, we'll take a look. Thanks.

Sunday, April 19, 2009 9:56 PM by Thomas.Olsen

# re: Updated Direct2D in March DirectX SDK

@Promit: "Is there any particular license on the sample code? I'd like to port it over to SlimDX, but we publish everything under the MIT license and I don't want to run into trouble there."

That's a question for the lawyers, and I'm not a lawyer. ;-p But I will pose the question, and see what they say.

Sunday, April 19, 2009 9:57 PM by Thomas.Olsen

# re: Updated Direct2D in March DirectX SDK

@Brian: "When we will there be some kind of forum support?  I've got a variety of questions I'd like to get answered about the behavior of the current runtime/sdk.  Thanks, Brian"

Given that this is still a prelease product, we don't have a forum set up yet. But I would be happy to answer any questions that you have about the behavior of the runtime/sdk. Please feel free to contact me.

Sunday, April 19, 2009 10:00 PM by Thomas.Olsen

# re: Updated Direct2D in March DirectX SDK

Another vote for making it work on XP. Will be _really_ useful.

Tuesday, May 12, 2009 11:25 PM by Eugene Zolotko

# re: Updated Direct2D in March DirectX SDK

When will be the RUNTIME be available on Vista rather than the SDK?

Tuesday, May 26, 2009 12:07 AM by anonymous

# re: Updated Direct2D in March DirectX SDK

For a full-screen 2D-only application (e.g. a visualizer) what is the recommended method to avoid tearing? In other words, what is the Direct2D equivalent of full-screen Exclusive mode and page-flipping in DirectDraw? I tried the examples but didn't find this case.

-chris

Sunday, July 12, 2009 3:14 AM by Chris K

# re: Updated Direct2D in March DirectX SDK

I hope it will be support Direct2D  run on XP

Saturday, July 25, 2009 10:11 AM by Joyeer

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker