[SDL] Can SDL be used on an existing window ?
Ryan C. Gordon
icculus at clutteredmind.org
Sun Feb 24 04:15:02 PST 2002
> Probably it's enough to just create a backbuffer surface and blit it
> onto the container's window at the location of the control,
> but I fear SDL may UpdateRect() the entire window and cause flickering
> all over the place or even destroy the window's contents.
May I take a headcount here? Raise your hand if SDL_WINDOWID _EVER_ worked
correctly for you, on any platform.
(*sound of crickets*)
Don't use SDL_WINDOWID. Use a different toolkit. If you _MUST_ draw into
an existing win32 window (or GTK+ window, or whatever window), than use
the system-dependent API.
SDL_WINDOWID is a hack, it was never a good idea, and it should really be
removed from the library, because it never, never works the way people
hope it will.
More information about the SDL