开发者

Replacing legacy DirectDraw code

Yesterday I found source codes for my Tetris game developed many years ago in C++, Win32 API and DirectDraw 7.开发者_JAVA技巧 I tryed to build solution without any success because most recent DirectX SDK (June 2010) does not include DDraw.h and DDraw.lib any more.

Is there any recommended approach (hopefully with examples) to upgrade code from DirectDraw to newer API? Or should I simply install older DirectX SDK?


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

Failing that you could port to D3D though this will be quite a task and is really dependent on how you do your rendering. If all your rendering is performed using blits (and no direct frame buffer access) then it should be relatively straight forward to port it to D3D. It will also provide you with HUGE speed boosts.

That said you can just get hold of the DirectDraw headers (I believe they are in the Windows SDK) and continue using DirectDraw.


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

You should find ddraw in windows sdk.

You can find ddraw.h in windows sdk but, there is no ddraw.lib neither.

how to use? use ddraw.dll.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜