SFML community forums

Help => General => Topic started by: trilavia on December 12, 2012, 06:30:32 pm

Title: Integrating SFML and FLTK (or other widget lib)
Post by: trilavia on December 12, 2012, 06:30:32 pm
I have an app written in FLTK 1.3 (http://www.fltk.org/ (http://www.fltk.org/)). I want to create a big widget (something like subwindow), which will act like SFML render window and I will be able to render using SFML there. The problem is I want FLTK to handle main window, so there is a conflict.

Any tips or your experience with something similar?

Big thanks in advance!
Title: Re: Integrating SFML and FLTK (or other widget lib)
Post by: eXpl0it3r on December 12, 2012, 09:15:25 pm
Well you basically have to create your own widget that holds a OpenGL 'context'. I don't have any experience on that level, but this has been done for multiple other GUI systems, maybe you can get some ideas from there, but keep in mind that the code was mainly made for SFML 1.6, so some changes need to be made for SFML 2.0:

Good luck! :)