在SDL中要探测显卡的分辨率的话,可以用下面的enumerate_sdl_modes函数。
在主程序中,应该这样调用:
基本格式也就这样了,遇到新的情况可以依照这种方法灵活运用就是了。 |
在SDL中要探测显卡的分辨率的话,可以用下面的enumerate_sdl_modes函数。
在主程序中,应该这样调用:
基本格式也就这样了,遇到新的情况可以依照这种方法灵活运用就是了。 |