Roozbeh
Roozbeh

Reputation: 77

Multiple windows via SDL 1.2?

I am just making a "Paint" program. I completely made the canvas. Now I want to make a toolbar but when I use

SDL_Surface *toolbar = SDL_SetVideoMode( ... );

canvas disappears and toolbar appears. Is there any way to have 2 (or more) windows in SDL?

*note: I am using SDL 1.2.

Upvotes: 1

Views: 597

Answers (1)

user1095108
user1095108

Reputation: 14603

There is no way with SDL 1.2, but with SDL 2, this became possible (SDL_CreateWindow*()) . Note that, this is true only for a true window (i.e. detachable toolbar), not a toolbar embedded into your application.

Upvotes: 2

Related Questions