Using SDL with GUI toolkits

Hello,

Some of you may be aware that ‘panoramic movies’ are about to come of
age, so I am combining Helmut Deurch’s Panorama Tools and the SMPEG
library under wxWindows to create a panoramic movie viewer. The
extraction sequence is to extract an MPEG frame (warped in the panoramic
format), un-warp the appropriate viewing angle using Panorama Tools, and
draw that final surface to a wxWindows control.

It looks like I can place the panoramic transformation function in the
callback function for SDL_UpdateRect(), along with the appropriate
wxWindows drawing calls to draw the SDL surface onto the wxWindows
control. So, the real problem is that SDL won’t be doing the drawing,
which is one of its core functionalities. I don’t need SDL to create a
window, I only need it to initialize so that everything except drawing
to the screen works.

Thanks,

Ben

Hello,

Perhaps my original message was too complicated. Is there a way to
prevent SDL from drawing to the screen, while keeping everything else
working the same?—
Ben Allfree, Owner
Computer Masters
P.O. Box 13666
Fort Wayne, IN 46825
219.744.4607
520.833.2975 (24-hour fax)
cm at bldigital.com

Hello,

Perhaps my original message was too complicated. Is there a way to
prevent SDL from drawing to the screen, while keeping everything else
working the same?

Sure, don’t call SDL_UpdateRects(). You might not even want to set a video
mode. Am I understanding you correctly?

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Sure, don’t call SDL_UpdateRects(). You might not even want to set a video
mode. Am I understanding you correctly?

I don’t think the solution is that simple. On Win32, a window is created (and
shown?) somewhere in SDL_Init(SDL_INIT_VIDEO). Since a GUI toolkit manages its
own windows and has its own drawing routines, the window created by SDL, and
any functions which physically draw to it, are not needed.—
Ben Allfree, Owner
Computer Masters
P.O. Box 13666
Fort Wayne, IN 46825
219.744.4607
520.833.2975 (24-hour fax)
cm at bldigital.com