2008-11-01から1ヶ月間の記事一覧
通常 void* dst; uint32 pitch; int xp, yp; const int ey = yp + 10; texture.Lock(dst, pitch); for (int y = yp; y < ey; ++y) { uint8* dp = (uint8*)dst+ y * pitch + xp; for (int x = 0; x < 10; ++x) { *dp++ = 0; } } texture.Unlock(); 高速 void*…