当我最后一次这样做时,您会使用 DirectDraw 来 blit 到硬件表面,甚至直接映射它并直接绘制。
今天推荐的方法是什么?使用 Direct3D 10/11 并做同样的事情?
编辑:为了澄清我的问题,我想做一些软件光栅化,因此需要一种快速的方法将像素数据直接传输到显示器。
I would suggest to use Direct2D which is meant for desktop applications these days. Quote:
Purpose
Direct2D is a hardware-accelerated, immediate-mode, 2-D graphics API that provides high performance and high-quality rendering for 2-D geometry, bitmaps, and text. The Direct2D API is designed to interoperate well with GDI, GDI+, and Direct3D.
Requirements: Vista and higher as well as the respective server versions (if that is needed).