Creating a second window using SDL

Started by
2 comments, last by Joshnathan 19 years, 4 months ago
Hi all, my question is quite simple, how can I create a second window using SDL? I try'd

void ShowMenu()
{
     SDL_Surface *menu = SDL_SetVideoMode(200, 150, 32, SDL_HWSURFACE|SDL_DOUBLEBUF);
     SDL_Delay(1000);
}




but this erases the old one. any idea how I could create a 2nd? Thanks, Joshua P.S. if you know how, could you also tell me how to close it afterwards? :D
-----------------------------Sismondi GamesStarted c++ in October 2004...
Advertisement
Creating multiple windows isn't possible under the current version of SDL.
Last time I checked, SDL only supports one window(they're going to add multiple window support in one of the next versions, IIRC). Although, there are some GUIs that can have "windows" open inside the SDL window, such as ParaGUI
:(
well, I guess my idea will have to wait then... :(
for now I will make the menu inside the same window.
-----------------------------Sismondi GamesStarted c++ in October 2004...

This topic is closed to new replies.

Advertisement