對於硬體渲染,應使用 SDL_RenderReadPixels() 方法。要儲存螢幕截圖,您需要這樣的程式碼: SDL_Surface *sshot = SDL_CreateRGBSurface(0, w, h, 32, ...
確定! 回上一頁