我希望您能为我提供一种简单/快速的方法,使用SDL2完成以下容易事项:
我有一个窗口和一个渲染器,我想为我所处的每个像素设置一个(32位)颜色:
例如,我有一个5120×2880的窗口:
例如,我有一个5120×2880的窗口:
y = 0;
while (y < 2880)
{
x = 0;
while (x < 5120)
{
Do what ever I want with the pixel pos x, y;
x++;
}
y++;
}