我最近开始学习SDL,想好好了解一下。我遵循了 Lazy Foo' Productions' 的教程,但有一个说法我不明白。以下示例中的 gScreenSurface->format
或 screenSurface->format
背后的含义是什么?
SDL_ConvertSurface( screenSurface, gScreenSurface->format, 0 );
SDL_FillRect( screenSurface, NULL, SDL_MapRGB( screenSurface->format, 0xFF, 0xFF, 0xFF ));
希望有人能解释一下,只需要简单的解释。谢谢!
最佳答案
你看过documentation了吗? ?该格式是一种 SDL 像素格式,详细说明了如何在内存中设置像素。
关于c++ - SDL中screenSurface->format是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57501134/