Direct3d vs direct2d versus directdraw for 2d games?

Mar 6, 2013 at 5:26pm
Which one is best for 2d games? I will need to use bitmaps and sprites a lot if that has any influence.
Last edited on Mar 6, 2013 at 5:27pm
Mar 6, 2013 at 5:37pm
Direct2d is a pain in the ass for games. If EndDraw() returns ERROR_RECREATE you have to recreate the render target, and that means you have to recreate ALL of your bitmaps. Apparently you can't create the render target and expect it to survive the lifetime of your app. As for DirectDraw... hasn't that been deprecated? I suggest opengl or some library that uses it, because opengl is much easier to use for 2d rendering than directx and its COM stuff.
Mar 6, 2013 at 5:48pm
Edit: Alright, thanks.
Last edited on Mar 6, 2013 at 5:56pm
Mar 12, 2013 at 7:20am
I think d3d is better because the d3d api include all direct2d api.
Mar 12, 2013 at 11:46am
Direct2D is a separate API. It was released with windows 7 and backported to vista and it replaces GDI for hardware accelerated GUI rendering. You don't need the Directx SDK to use it or anything.
Last edited on Mar 12, 2013 at 11:48am
Topic archived. No new replies allowed.