在SDL中,这两个窗口事件之间有什么不同?
SDL_WINDOWEVENT_RESIZEDSDL_WINDOWEVENT_SIZE_CHANGED在wiki文档页面中有以下代码示例:
case SDL_WINDOWEVENT_RESIZED:…
从 SDL Wiki :
的 SDL_WINDOWEVENT_RESIZED 强> 窗口已调整为data1 x data2;这个事件总是先于 SDL_WINDOWEVENT_SIZE_CHANGED 的 SDL_WINDOWEVENT_SIZE_CHANGED 强> 窗口大小已更改,无论是API调用还是通过系统或用户更改窗口大小;这个事件之后是 SDL_WINDOWEVENT_RESIZED 如果大小是由外部事件改变的,即用户或窗口管理器
的 SDL_WINDOWEVENT_RESIZED 强>
窗口已调整为data1 x data2;这个事件总是先于 SDL_WINDOWEVENT_SIZE_CHANGED
SDL_WINDOWEVENT_SIZE_CHANGED
的 SDL_WINDOWEVENT_SIZE_CHANGED 强>
窗口大小已更改,无论是API调用还是通过系统或用户更改窗口大小;这个事件之后是 SDL_WINDOWEVENT_RESIZED 如果大小是由外部事件改变的,即用户或窗口管理器
SDL_WINDOWEVENT_RESIZED