FLTK and SDL

Hello SDL mailing list~

I’m currently writing a program using FLTK and SDL.

I was wondering if there was a way to put a SDL surface on a FLTK window.

Right now It makes two windows. =(

Thanks,
Henaro

FLTK has an opengl window if that’s what you’re trying to do? Not sure about
putting SDL’s main drawing in a window though.

JOn 1/20/07, Taylor Assbone Peterson wrote:

Hello SDL mailing list~

I’m currently writing a program using FLTK and SDL.

I was wondering if there was a way to put a SDL surface on a FLTK window.

Right now It makes two windows. =(

Thanks,
Henaro


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

Hello !

I’m currently writing a program using FLTK and SDL.

I was wondering if there was a way to put a SDL surface on a FLTK window.

Right now It makes two windows. =(

It is easy, look at this :

http://www.syntheticsw.com/~wizard/projects/multiwin/

CU

Yes, it is. What version of FLTK are you using. I use the weekly snapshots for
1.1.x as they are very stable. Also, what platform?

I use openSUSE 10.2 and this is what I do. I set the SDL_windowid environment
variable (check the SDL docs) with fltk’s X window id. To get the window id,
use the funciton fl_xid(). Just pass the Fl_Window pointer of the window you
want the SDL_surface to be embedded into.

I just checked the fltk 1.1.x docs, and you can use fl_xid() in Windows as
well. It will return the window handle that you can use to set SDL_windowid.

AlvinOn Saturday 20 January 2007 16:03, Taylor “Assbone” Peterson wrote:

Hello SDL mailing list~

I’m currently writing a program using FLTK and SDL.

I was wondering if there was a way to put a SDL surface on a FLTK window.

Right now It makes two windows. =(

Thanks,
Henaro