Channel 9 Forums - Coffeehouse - New Direct2D wrapper for next version of .net?http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.pngChannel 9 Forums - Coffeehouse - New Direct2D wrapper for next version of .net?http://channel9.msdn.com/Forums
Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.http://channel9.msdn.com/Forums
enTue, 03 Mar 2015 20:31:44 GMTTue, 03 Mar 2015 20:31:44 GMTRev918-18-1Coffeehouse - New Direct2D wrapper for next version of .net?In all the information leaked about Windows 8 and .net 4.5, is there any indication we have a new managed wrapper for Direct2D? It is fine to code directly to Direct2D currently, but it is difficult to create libraries that work with both 32 and 64 bit applications.]]>http://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/36430814063141b6b5209f10013e38f5#36430814063141b6b5209f10013e38f5
Tue, 28 Jun 2011 19:18:36 GMThttp://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/36430814063141b6b5209f10013e38f5#36430814063141b6b5209f10013e38f5Frank Hileman18http://channel9.msdn.com/Niners/Frank Hileman/Discussions/RSSCoffeehouse - New Direct2D wrapper for next version of .net?I believe that is all now part of what is being called DirectUI. For the sake of backwards compatibility, I'm sure you'll still be able to write against Direct2D directly, but moving forward we'll be encouraged to target DirectUI as the new unified API.]]>http://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/b419b03c190d41c5b9219f100145703a#b419b03c190d41c5b9219f100145703a
Tue, 28 Jun 2011 19:44:53 GMThttp://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/b419b03c190d41c5b9219f100145703a#b419b03c190d41c5b9219f100145703akettch18http://channel9.msdn.com/Niners/kettch/Discussions/RSSCoffeehouse - New Direct2D wrapper for next version of .net?Can you point to any site or blog where a new immediate mode API is visible? Thanks!]]>http://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/7667a300b3a243b096849f100155cd07#7667a300b3a243b096849f100155cd07
Tue, 28 Jun 2011 20:44:27 GMThttp://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/7667a300b3a243b096849f100155cd07#7667a300b3a243b096849f100155cd07Frank Hileman18http://channel9.msdn.com/Niners/Frank Hileman/Discussions/RSSCoffeehouse - New Direct2D wrapper for next version of .net?@Frank Hileman: All that is available is rumor and speculation based on dissecting the leaked builds.

There are a number of links in this thread that point to what little is available. Microsoft has so far remained silent, allowing the blogsphere to whip itself into a frothing frenzy. Quite entertaining, actually.

]]>http://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/80e2488f709647f6aede9f100157882f#80e2488f709647f6aede9f100157882f
Tue, 28 Jun 2011 20:50:45 GMThttp://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/80e2488f709647f6aede9f100157882f#80e2488f709647f6aede9f100157882fkettch18http://channel9.msdn.com/Niners/kettch/Discussions/RSSCoffeehouse - New Direct2D wrapper for next version of .net?@kettch: Thanks, but in the mydigitallife forum thread, I could not see any namespace that was definitely for immediate mode rendering. ]]>http://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/7713d54009cf4495a5469f10015fe04f#7713d54009cf4495a5469f10015fe04f
Tue, 28 Jun 2011 21:21:08 GMThttp://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/7713d54009cf4495a5469f10015fe04f#7713d54009cf4495a5469f10015fe04fFrank Hileman18http://channel9.msdn.com/Niners/Frank Hileman/Discussions/RSSCoffeehouse - New Direct2D wrapper for next version of .net?from what ive been able to gather, DirectUI is a high(er) level ui framework utilizing xaml but written in native code on top of direct2d

i havent heard of any new managed version of direct2d. However, it looks like interoping with the regular native direct2d will be alot easier via the windows runtime, possibly allowing us to write c# but compile it to native code. it also seems like you can target directUI from c# as well

no one really knows though.. build cant come soon enough

]]>http://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/3e0cbcf59460447d86b29f10016d3e11#3e0cbcf59460447d86b29f10016d3e11
Tue, 28 Jun 2011 22:09:48 GMThttp://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/3e0cbcf59460447d86b29f10016d3e11#3e0cbcf59460447d86b29f10016d3e11Allan Lindqvist18http://channel9.msdn.com/Niners/aL_/Discussions/RSSCoffeehouse - New Direct2D wrapper for next version of .net?Direct2D apis just call Direct3D using textures on top of XYZ_RHW (post-translation) vertexes, so if you want a fast .NET way to do this your best bet is XNA - in particular the SpriteBatch class which draws 2D textures to the screen.]]>http://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/0b5a9f631a91403ba1ac9f1100816d17#0b5a9f631a91403ba1ac9f1100816d17
Wed, 29 Jun 2011 07:51:13 GMThttp://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/0b5a9f631a91403ba1ac9f1100816d17#0b5a9f631a91403ba1ac9f1100816d17evildictaitor18http://channel9.msdn.com/Niners/evildictaitor/Discussions/RSSCoffeehouse - New Direct2D wrapper for next version of .net?

@kettch: Thanks, but in the mydigitallife forum thread, I could not see any namespace that was definitely for immediate mode rendering.

Indeed, there isn't. The only graphics namespace that's available is Windows.Graphics.Imaging which is a simple wrapper for WIC. Well, there's Windows.UI.DirectUI.Shapes but I suppose you aren't looking for that.

Direct2D apis just call Direct3D using textures on top of XYZ_RHW (post-translation) vertexes, so if you want a fast .NET way to do this your best bet is XNA - in particular the SpriteBatch class which draws 2D textures to the screen.

Umm, there's way more than that going on inside 2D. If you're not familiar with the subject maybe you should not make baseless affirmations such as this one.

]]>http://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/f3cfc65291c74695a8cf9f110086669a#f3cfc65291c74695a8cf9f110086669a
Wed, 29 Jun 2011 08:09:20 GMThttp://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/f3cfc65291c74695a8cf9f110086669a#f3cfc65291c74695a8cf9f110086669aDexter18http://channel9.msdn.com/Niners/Dexter/Discussions/RSSCoffeehouse - New Direct2D wrapper for next version of .net?Since MS seems to be heading towards a merging of native and managed code with the Windows Runtime, I wouldn't doubt that a managed API for Direct2D will be in .NET 4.5 or Jupiter.

It's too bad that BUILD is so far off. At least all of the hubbub shows that the Windows dev community is alive and well.

]]>http://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/c115db5ce7264cb4b49d9f1100d688e8#c115db5ce7264cb4b49d9f1100d688e8
Wed, 29 Jun 2011 13:01:05 GMThttp://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/c115db5ce7264cb4b49d9f1100d688e8#c115db5ce7264cb4b49d9f1100d688e8Scott18http://channel9.msdn.com/Niners/spivonious/Discussions/RSSCoffeehouse - New Direct2D wrapper for next version of .net?

Umm, there's way more than that going on inside 2D. If you're not familiar with the subject maybe you should not make baseless affirmations such as this one.

I'm not sure what you're objecting to in my statement. It is a simple matter of fact that Direct2D calls the Direct3D APIs to trap to the dxapi.sys - Direct2D calls Direct3D to do it's rendering. That's how DirectX (and for that matter GDI) works.

]]>http://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/073b99a1fc834ef391689f11011227f2#073b99a1fc834ef391689f11011227f2
Wed, 29 Jun 2011 16:38:10 GMThttp://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/073b99a1fc834ef391689f11011227f2#073b99a1fc834ef391689f11011227f2evildictaitor18http://channel9.msdn.com/Niners/evildictaitor/Discussions/RSSCoffeehouse - New Direct2D wrapper for next version of .net?That D2D calls D3D is obvious. What doesn't seem to be obvious is that before doing that, D2D must tesselate the geometry because D3D has no clue how to draw an ellipse for example.

And then you have stroke styles, gradient brushes, text rendering support. And geometry operations like combine and widen which don't have anything to do with calling D3D.

So yeah, I guess you could use XNA and its SpriteBatch because implementing all of the above is trivial and implementing your own SpriteBatch is not. Oh wait...

]]>http://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/8676e5115b6d4ec788e19f110123bb83#8676e5115b6d4ec788e19f110123bb83
Wed, 29 Jun 2011 17:42:09 GMThttp://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/8676e5115b6d4ec788e19f110123bb83#8676e5115b6d4ec788e19f110123bb83Dexter18http://channel9.msdn.com/Niners/Dexter/Discussions/RSSCoffeehouse - New Direct2D wrapper for next version of .net?Thanks for the sarcasm. It really makes me want to try and help you again in future. I won't bother to remind you that you can already do text and ellipses and gradients and stroke styles and combine operations in XNA, because you're so amazingly smart that you clearly already know everything in the world, which is why you asked a question and then attacked me for trying to help.]]>http://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/105e2efb71ce43a5b3bc9f11012f6408#105e2efb71ce43a5b3bc9f11012f6408
Wed, 29 Jun 2011 18:24:36 GMThttp://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/105e2efb71ce43a5b3bc9f11012f6408#105e2efb71ce43a5b3bc9f11012f6408evildictaitor18http://channel9.msdn.com/Niners/evildictaitor/Discussions/RSSCoffeehouse - New Direct2D wrapper for next version of .net?

Thanks for the sarcasm. It really makes me want to try and help you again in future. I won't bother to remind you that you can already do text and ellipses and gradients and stroke styles and combine operations in XNA, because you're so amazingly smart that you clearly already know everything in the world, which is why you asked a question and then attacked me for trying to help.

Well, feel free to bother to remind me all that... if you can also point to some documentation/samples to back it up.

]]>http://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/0ebd536195654391a0ea9f1101323773#0ebd536195654391a0ea9f1101323773
Wed, 29 Jun 2011 18:34:54 GMThttp://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/0ebd536195654391a0ea9f1101323773#0ebd536195654391a0ea9f1101323773Dexter18http://channel9.msdn.com/Niners/Dexter/Discussions/RSSCoffeehouse - New Direct2D wrapper for next version of .net?@evildictaitor: Direct2D is the type of API I am looking for, not XNA. Thanks anyway.

There is a lot more to Direct2D than XNA or Direct3D, for 2d rendering.

]]>http://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/9ca4264162714c4c9eea9f11013fe837#9ca4264162714c4c9eea9f11013fe837
Wed, 29 Jun 2011 19:24:44 GMThttp://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/9ca4264162714c4c9eea9f11013fe837#9ca4264162714c4c9eea9f11013fe837ZippyV18http://channel9.msdn.com/Niners/ZippyV/Discussions/RSSCoffeehouse - New Direct2D wrapper for next version of .net?@ZippyV: Yes, but it is not part of the framework, nor maintained well. Also, the 32/64 bit problem is not addressed (how to create a single library compiled to anycpu, that works for both).]]>http://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/56485bd1b190484b85b39f1101445305#56485bd1b190484b85b39f1101445305
Wed, 29 Jun 2011 19:40:49 GMThttp://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/56485bd1b190484b85b39f1101445305#56485bd1b190484b85b39f1101445305Frank Hileman18http://channel9.msdn.com/Niners/Frank Hileman/Discussions/RSSCoffeehouse - New Direct2D wrapper for next version of .net?@Frank Hileman:

while its not part of the framework, id take a look at http://slimdx.org/ its an open source managed wrapper around directx that is pretty well maintained. currently they support:

]]>http://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/05eae483efcb43709dae9f1200765ab3#05eae483efcb43709dae9f1200765ab3
Thu, 30 Jun 2011 07:10:54 GMThttp://channel9.msdn.com/Forums/Coffeehouse/New-Direct2D-wrapper-for-next-version-of-net/05eae483efcb43709dae9f1200765ab3#05eae483efcb43709dae9f1200765ab3Allan Lindqvist18http://channel9.msdn.com/Niners/aL_/Discussions/RSSCoffeehouse - New Direct2D wrapper for next version of .net?@aL_: Also there is SharpDX, which seems to be faster.