I’m interested in using SDL for my game, to do animation, graphics, sound, etc., but use wxWidgets to show dialog boxes: high score name entry, Open File dialog, and general alerts… as well as a Preferences dialog. Plus the level builder will have lots of dialogs.
Problem is, both SDL and wxWidgets use the same event loop. Does anyone know anything about combining both library? Unlike woohoo, who posted in a separate thread a couple days ago about this, I don’t need to allow both SDL and wxWidgets to draw to the same window. Their drawing can be separate. The only problem is events, since both libraries want to “control” events themselves. I want SDL to handle events unless a dialog is showing. While the dialog is active, wxWidgets handles events. Then SDL handles them when the dialog is dismissed.
All I found in a Google search is this, really old, tutorial:
http://code.technoplaza.net/wx-sdl/part1/
Both SDL and wxWidgets have changed a lot since then. I’m using the very latest SDL 1.3 and wxWidgets 2.9.2alpha.
Anyone have any actual experience doing this, or links to tutorials / info?
-Vern