Making a SDL-Window Child of another window (crossplatform)

Everything else that doesn't fall into one of the other PB categories.
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Making a SDL-Window Child of another window (crossplatform)

Post by inc. »

I was able making a Windows window parent of a SDL-window.
As Im working on a crossplatform FFmpeg include/framework for PB – How can I archive this on Linux and on OSx ?
Im aware that on the first view the easiest approach would be using PBs internal drawing routines, but as I also want playing back FFmpeg's streaming-audio-output via ring-buffering, Im forced to use SDL.

My Windows Code approach:

Code: Select all

hwnd = OpenWindow(0, 0, 0, width, height, "FFmpeg", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_MinimizeGadget | #PB_Window_TitleBar)
screen.SDL_Surface = SDL_SetVideoMode(width, height, 32, #SDL_HWSURFACE|#SDL_DOUBLEBUF|#SDL_NOFRAME)
    
Define pInfo.SDL_SysWMinfo
SDL_VERSION(pInfo\version)
SDL_GetWMInfo(@pInfo)
hwndSDL = pInfo\window
    
SetParent_(hwndSDL, hwnd)
BTW. this forum engine doesn't permit searching for words less than 4 letters, so "sdl" wont be supported, or did I miss something?
Check out OOP support for PB here!
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: Making a SDL-Window Child of another window (crossplatfo

Post by Vera »

inc. wrote:BTW. this forum engine doesn't permit searching for words less than 4 letters, so "sdl" wont be supported, or did I miss something?
yes ~ an asterix: try sdl* ~ and this thread: Forum Search Plugin

good luck with your project :)
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Re: Making a SDL-Window Child of another window (crossplatfo

Post by inc. »

Fred or Timo ... any hints on this for Linux and OSx?
Check out OOP support for PB here!
Post Reply