wxWindows, QT and SDL

Hi ppl,

Anybody has used wxWindows or QT with SDL?
If so, how do we create a window and such with it?
I’m using OpenGL too, so I need to have a portion of screen which will be
rendered with GL calls.

Thnxs a lot,

Bruce Christopher Barrera

I’ve used wxWindows with SDL.

I’ve only used it in separate windows, though(one SDL window and a GUI control
window). I think wxWindows supports OpenGL natively(you can render directly
in a wxWindows window), but I can’t remember the details offhand.

I used wxWindows entry point instead of SDL’s under Win32, as it was the
simplest way to go. You will need to reimplement some of SDL’s Win32
WinMain, otherwise your application may experience odd behavior/crashing.

If you want to have your own event loop(which you most certainly will want to
have), you can declare your own MainLoop() in your class derived from wxApp.
Under GTK+, it should be sufficient to call wxYield() and
wxLog::FlushActive() regularly, but that doesn’t work so well on Win32. On
Win32, I use code similar to the following in my event loop:

    #if wxUSE_THREADS 
    wxMutexGuiLeaveOrEnter();
    #endif // wxUSE_THREADS

    while(Pending()) DoMessage();

    while(ProcessIdle())
    {
     DoMessage();
    }

I’ve only tested it with wxWindows 2.4.2. wxWindows 2.6(or maybe it was 3.0?)
is supposed to have an event loop class, which may help solve the issue of
having your own event loop without resorting to hackish solutions.On Thursday 29 January 2004 08:36, Bruce @ OpenGL wrote:

Hi ppl,

Anybody has used wxWindows or QT with SDL?
If so, how do we create a window and such with it?
I’m using OpenGL too, so I need to have a portion of screen which will be
rendered with GL calls.

Thnxs a lot,

Bruce Christopher Barrera


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl