SDLの専門家にとっては簡単な質問です。次の 2 つの一見同等の関数について混乱しており、いつどちらを使用するべきか疑問に思っています。
SDL_Surface * SDL_SetVideoMode (int width, int height, int bpp, Uint32 flags);
SDL_Surface * SDL_CreateRGBSurface (Uint32 flags,
int width, int height, int depth,
Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);
上記の2つの基本的な違いは何ですか?
SDL_SetVideoMode の後にSDL_CreateRGBSurfaceを呼び出さなければならないことがここで述べられています。どうしてこんなことに?