#include <easyx.h>
int main()
{
initgraph(1600, 900);
IMAGE* image = new IMAGE();
loadimage(image, _T(R"*(.\Resources\Textures\test.jpg)*"));
float x = 0;
BeginBatchDraw();
while (true)
{
cleardevice();
putimage(x, 0, image);
x += 5;
FlushBatchDraw();
Sleep(10);
}
EndBatchDraw();
}
效果如这个GIF图 :https://tieba.baidu.com/p/7285324832