Replacing deprecated DirectDraw code

Yesterday I found the source for my Tetris game, developed many years ago in C ++, Win32 API and DirectDraw 7. I tried to build a solution without any success, because the last DirectX SDK (June 2010) no longer includes DDraw.h and DDraw.lib.

Is there any recommended approach (hopefully with examples) for updating code from DirectDraw to a newer API? Or should I just install the older DirectX SDK?

+5
source share
2 answers

If you use the DirectDraw blit functionality, it will be quite a difficult task to port it. In my opinion, your best option is to port it to GDI. This may mean writing your own blit functions.

Otherwise, you can connect to D3D, although this will be a rather difficult task and really depends on how you render. If all your rendering is done using blits (and without direct access to the frame buffer), then it should be relatively straightforward to put it in D3D. It will also provide you with GREAT speed acceleration.

However, you can simply get the DirectDraw headers (I believe they are in the Windows SDK) and continue to use DirectDraw.

+3
source

There is no ddraw engine in the DirectX SDK (June 2010).

ddraw windows sdk.

ddraw.h windows sdk, ddraw.lib.

? ddraw.dll.

0

All Articles