Should be a simple question for SDL experts. I am confused about the following two seemingly equivalent functions and wondering when to use which
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);
What's the fundamental difference between the above two?
It's mentioned here that SDL_CreateRGBSurface has to be called after SDL_SetVideoMode. Why is that so?