我想画一个表面,然后暂停我的程序1秒钟。不幸的是,在延迟之后,表面不会被绘制到屏幕上。 SDL何时实际绘制到屏幕上?如何强制它绘制队列中的所有表面""现在?
这是一些用于说明问题的框架代码
SDL_BlitSurface(NewSurface, NULL,Display, &destRect); //Draw the new surface
SDL_Flip(display); //I have tried flipping all the surfaces
SDL_Delay(1000); //Or Sleep(1000) neither work
... //Surface is drawn sometime later but I cannot figure out when.