的DirectX,GDI +或SDI在Windows XP上? [英] DirectX, GDI+ or SDI on Windows XP?

查看:245
本文介绍了的DirectX,GDI +或SDI在Windows XP上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  1. 如果我想要做的扩展和实时2D消除锯齿的矢量和位图图像在Windows XP和更高版本的Windows的合成,使硬件加速的最佳利用可用的,我应该使用GDI +或DirectX 9.0C? (事实上​​,Windows XP和Windows 7很重要,但我们​​并不担心在Vista上的表现。)

  2. 有没有在使用SDL任何好处,因为该应用程序是不是跨平台(也绝不会)?我不知道如果SDL可能更容易切换到任何底层的绘图API提供更好的性能...

  3. 我在哪里可以找到做缩放2D图像和合成中的DirectX 9.0c的文件? (我发现的DirectDraw的文件,但读它的DirectX 7,但Direct2D的后pcated德$ P $不可用,直到DirectX 10的。)

  4. 我可以合理地期望缩放和合成在中到低规格的PC(即集成显卡),在Windows XP上进行硬件加速?如果没有,那么它甚至不管我是否使用GDI +或DirectX 9.0c的?

解决方案

我刚刚发现这一点:<一href="http://www.gamedev.net/page/resources/_/technical/directx-and-xna/2d-rendering-in-directx-8-r1434"相对=nofollow>在DirectX 8的的2D渲染。

看来,由于微软删除的DirectX的DirectDraw 7后,他们希望所有的2D绘图使用3D API来完成。这可以解释为什么我完全没有发现我一直在寻找的文档。

文章看起来很有希望至今。

下面是另一个问题:在一个三维世界 2D编程

  1. If I want to do scaling and compositing of 2D anti-aliased vector and bitmap images in real-time on Windows XP and later versions of Windows, making the best use of hardware acceleration available, should I be using GDI+ or DirectX 9.0c? (Actually, Windows XP and Windows 7 are important but we're not concerned about performance on Vista.)

  2. Is there any merit in using SDL, given that the application is not cross-platform (and never will be)? I wonder if SDL might make it easier to switch to whichever underlying drawing API gives better performance…

  3. Where can I find the documentation for doing scaling and compositing of 2D images in DirectX 9.0c? (I found the documentation for DirectDraw but read that it is deprecated after DirectX 7. But Direct2D is not available until DirectX 10.)

  4. Can I reasonably expect scaling and compositing to be hardware accelerated on Windows XP on a mid- to low-spec PC (i.e. integrated graphics)? If not then does it even matter whether I use GDI+ or DirectX 9.0c?

I just found this: 2D Rendering in DirectX 8.

It appears that since Microsoft removed DirectDraw after DirectX 7 they expected all 2D drawing to be done using the 3D API. This would explain why I totally failed to find the documentation I was looking for.

The article looks promising so far.

Here's another: 2D Programming in a 3D World

这篇关于的DirectX,GDI +或SDI在Windows XP上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆