阅读背景:

如何从RGB值的原始数组直接在屏幕上显示像素,比SetPixel()更快?

来源:互联网 

I enjoy making "animations" in c++ such as a MandelBrot Set zoomer, Game of Life simulator etc. by setting pixels directly to the screen frame-by-frame. The SetPixel() command makes this incredibly easy, although unfortunately it's also painfully slow. Here is the sort of set-up I use for each frame, if I wanted to paint the entire screen with the contents of the array R:I enjoy making "animations" in c++ such as a Ma




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: