Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Integrating SFML and FLTK (or other widget lib)  (Read 2466 times)

0 Members and 1 Guest are viewing this topic.

trilavia

  • Newbie
  • *
  • Posts: 28
    • View Profile
Integrating SFML and FLTK (or other widget lib)
« on: December 12, 2012, 06:30:32 pm »
I have an app written in FLTK 1.3 (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!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
Re: Integrating SFML and FLTK (or other widget lib)
« Reply #1 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! :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/