可以执行以下操作吗?
SDL_Surface* screen;
screen = SDL_SetVideoMode( SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP, SDL_SWSURFACE | SDL_RESIZABLE | SDL_FULLSCREEN );
screen = SDL_SetVideoMode( SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP, SDL_SWSURFACE | SDL_RESIZABLE );
screen = SDL_SetVideoMode( SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP, SDL_SWSURFACE | SDL_RESIZABLE | SDL_FULLSCREEN );
我不需要在每次通话前清理表面吗?
最佳答案
在Windows上切换全屏的唯一方法是再次调用SDL_SetVideoMode。您不必释放屏幕表面。
注意,您可能会丢失硬件表面。
关于c++ - 多次调用SDL_SetVideoMode,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3263159/