Direct3D replacing DirectDraw for 2D Games??

Started by
2 comments, last by irbrian 20 years ago
I just happened upon this older thread -- http://www.gamedev.net/community/forums/topic.asp?topic_id=174258 -- in which several contributors claim that it''s easier to develop 2D games with Direct3D than DirectDraw, and thus DD is "dead". What''s up? Is this true? I did some preliminary searching on the subject and didn''t turn up anything terribly helpful. I''m just now starting to get into Win32 development and DirectX, and if this is true, I''d like to know where I can learn more about 2D development with Direct3D. Thanks.
---------------------------Brian Lacy"I create. Therefore I am."
Advertisement
http://www.gamedev.net/reference/articles/article1972.asp

here ya go.

// Redmar
In a nutshell, DirectX 7 was the last to update DirectDraw and there are no future plans to maintain it. DirectDraw, being 2D, does not benefit from most hardware acceleration graphic cards can provide. Direct3D, being 3D, can gain massive performance boosts because graphics cards are optimized for 3D nowadays.

Furthermore, it is MUCH easier and faster to render special effects with 3D than with 2D. For instance, translucency in 2D must be calculated on the fly and uses up massive amounts of CPU for anything but small sprites. In 3D, a textured quad rendered with an alpha channel is not only handled nearly automatically, it renders MUCH faster.

2D is not dead, however. Far from it. Using Direct3D is just a means of rendering your images. The fact it''s a 3D API doesn''t mean it cannot do 2D. You just have to think of your sprite as a textured polygone instead of a block of pixel data.
Also check out this article:

http://www.gamasutra.com/features/20010629/geczy_01.htm

It''s for an older version of DX, if I remember correctly. But I was able to use it to get started using D3D in C++.

Rattlehead

PS: I think you''ll have to get a gamasutra membership to view that article, but that''s not a big deal... it''s free.

This topic is closed to new replies.

Advertisement