In the checkEvents function, the stored mouse coordinates are forced into a grid of chunkSize by chunkSize squares.
在函数checkEvents中,鼠标坐标强制保存在chunkSize的正方形网格中。
Notice how in this function a rectangle of chunkSize by chunkSize pixels is copied from the appropriate frame to the drawable surface.
注意:在此函数中,长为chunkSize、宽为 chunkSize的像素矩形是如何从恰当的帧复制到绘图表面的。
At a chunkSize of 1, this will create a per-pixel correct rendering of the distortion algorithm, while each increase in chunkSize will drastically reduce the number of SDL_BlitSurface calls required.
chunksize取1将得到失真算法的逐像素矫正呈现。增大chunkSize将大大减少SDL_BlitSurface的调用次数。
At a chunkSize of 1, this will create a per-pixel correct rendering of the distortion algorithm, while each increase in chunkSize will drastically reduce the number of SDL_BlitSurface calls required.
chunksize取1将得到失真算法的逐像素矫正呈现。增大chunkSize将大大减少SDL_BlitSurface的调用次数。
应用推荐